Commit 5f9d1183 authored by David Redondo's avatar David Redondo 🏎
Browse files

[Cuttlefish] Make it clear that picker mode still works

Summary:
The alternative strings were lost in the quick controls 2 overhaul. Also fixes a
small bug that caused "edit-copy" to be copied to the clipboard everytime when
triggered from the context menu.

Test Plan: Enable plugin in Kate see the changed strings.

Reviewers: #plasma, cblack, ngraham, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D25806
parent 0621a641
......@@ -32,9 +32,9 @@ Menu {
}
MenuItem {
iconName: "edit-copy"
text: i18n("Copy icon name to clipboard")
text: pickerMode ? i18n("Insert icon name") : i18n("Copy icon name to clipboard")
onTriggered: {
previewPane.clipboard(iconName)
previewPane.clipboard(preview.iconName)
cuttlefish.showPassiveNotification(i18n("Icon name copied to clipboard"), "short")
}
}
......@@ -45,4 +45,4 @@ Menu {
Qt.openUrlExternally(preview.fullPath)
}
}
}
\ No newline at end of file
}
......@@ -260,7 +260,7 @@ Rectangle {
}
QQC2.Button {
Layout.alignment: Qt.AlignHCenter
text: i18n("Copy icon name to clipboard")
text: pickerMode ? i18n("Insert icon name") : i18n("Copy icon name to clipboard")
icon.name: "edit-copy"
onClicked: {
clipboard(preview.iconName)
......
......@@ -64,7 +64,7 @@ Kirigami.GlobalDrawer {
onTriggered: Qt.openUrlExternally(preview.fullPath)
},
Kirigami.Action {
text: i18n("Copy icon name to clipboard")
text: pickerMode ? i18n("Insert icon name") : i18n("Copy icon name to clipboard")
iconName: "edit-copy"
onTriggered: {
root.clipboard(preview.iconName)
......@@ -151,4 +151,4 @@ Kirigami.GlobalDrawer {
}
}
}
}
\ No newline at end of file
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment