mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 06:16:32 +00:00
ce18a52171
Because of https://bugreports.qt.io/browse/QTBUG-90740 inline context menu causes tests for StatusChatInput crashing (stack overflow) on 5.15.2 (this version is used on CI). The easiest option to solve that problem is moving inline component to a separate file. Closes: #12435
38 lines
779 B
QML
38 lines
779 B
QML
import StatusQ.Popups 0.1
|
|
|
|
StatusMenu {
|
|
id: root
|
|
|
|
signal enableLinkPreviewForThisMessage
|
|
signal enableLinkPreview
|
|
signal disableLinkPreview
|
|
|
|
hideDisabledItems: false
|
|
|
|
StatusAction {
|
|
text: qsTr("Link previews")
|
|
enabled: false
|
|
}
|
|
|
|
StatusAction {
|
|
text: qsTr("Show for this message")
|
|
icon.name: "show"
|
|
onTriggered: root.enableLinkPreviewForThisMessage()
|
|
}
|
|
|
|
StatusAction {
|
|
text: qsTr("Always show previews")
|
|
icon.name: "show"
|
|
onTriggered: root.enableLinkPreview()
|
|
}
|
|
|
|
StatusMenuSeparator { }
|
|
|
|
StatusAction {
|
|
text: qsTr("Never show previews")
|
|
icon.name: "hide"
|
|
type: StatusAction.Type.Danger
|
|
onTriggered: root.disableLinkPreview()
|
|
}
|
|
}
|