diff --git a/src/qml/FileDelegateContextMenu.qml b/src/qml/FileDelegateContextMenu.qml index 2057f3122..8cc1e5711 100644 --- a/src/qml/FileDelegateContextMenu.qml +++ b/src/qml/FileDelegateContextMenu.qml @@ -42,15 +42,19 @@ DelegateContextMenu { * Each action will be instantiated as a single line in the menu. */ property list actions: [ + DelegateContextMenu.ReplyMessageAction {}, Kirigami.Action { - text: i18n("Open Externally") + separator: true + }, + Kirigami.Action { + text: i18nc("@action:inmenu", "Open Image") icon.name: "document-open" onTriggered: { currentRoom.openEventMediaExternally(root.eventId); } }, Kirigami.Action { - text: i18nc("@action:inmenu", "Save As…") + text: i18nc("@action:inmenu", "Save Image…") icon.name: "document-save" onTriggered: { var dialog = saveAsDialog.createObject(QQC2.Overlay.overlay); @@ -58,14 +62,16 @@ DelegateContextMenu { dialog.open(); } }, - DelegateContextMenu.ReplyMessageAction {}, Kirigami.Action { - text: i18n("Copy") + text: i18nc("@action:inmenu", "Copy Image") icon.name: "edit-copy" onTriggered: { currentRoom.copyEventMedia(root.eventId); } }, + Kirigami.Action { + separator: true + }, Kirigami.Action { visible: author.id === currentRoom.localMember.id || currentRoom.canSendState("redact") text: i18n("Remove") @@ -88,7 +94,13 @@ DelegateContextMenu { }, DelegateContextMenu.ReportMessageAction {}, DelegateContextMenu.ShowUserAction {}, - DelegateContextMenu.ViewSourceAction {} + Kirigami.Action { + separator: true + visible: viewSourceAction.visible + }, + DelegateContextMenu.ViewSourceAction { + id: viewSourceAction + } ] /** diff --git a/src/qml/MessageDelegateContextMenu.qml b/src/qml/MessageDelegateContextMenu.qml index 998425215..6968459f4 100644 --- a/src/qml/MessageDelegateContextMenu.qml +++ b/src/qml/MessageDelegateContextMenu.qml @@ -59,21 +59,30 @@ DelegateContextMenu { }); } }, + Kirigami.Action { + separator: true + }, DelegateContextMenu.RemoveMessageAction {}, Kirigami.Action { - text: i18n("Copy") + text: i18nc("@action:inmenu", "Copy Text") icon.name: "edit-copy" onTriggered: Clipboard.saveText(root.selectedText.length > 0 ? root.selectedText : root.plainText) }, - DelegateContextMenu.ReportMessageAction {}, - DelegateContextMenu.ShowUserAction {}, - DelegateContextMenu.ViewSourceAction {}, Kirigami.Action { - text: i18n("Copy Link") + text: i18nc("@action:inmenu", "Copy Message Link") icon.name: "edit-copy" onTriggered: { Clipboard.saveText("https://matrix.to/#/" + currentRoom.id + "/" + root.eventId); } + }, + DelegateContextMenu.ReportMessageAction {}, + DelegateContextMenu.ShowUserAction {}, + Kirigami.Action { + separator: true + visible: viewSourceAction.visible + }, + DelegateContextMenu.ViewSourceAction { + id: viewSourceAction } ] }