diff --git a/cuttlefish/package/contents/ui/Menu.qml b/cuttlefish/package/contents/ui/Menu.qml --- a/cuttlefish/package/contents/ui/Menu.qml +++ b/cuttlefish/package/contents/ui/Menu.qml @@ -32,9 +32,9 @@ } 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 @@ Qt.openUrlExternally(preview.fullPath) } } -} \ No newline at end of file +} diff --git a/cuttlefish/package/contents/ui/Preview.qml b/cuttlefish/package/contents/ui/Preview.qml --- a/cuttlefish/package/contents/ui/Preview.qml +++ b/cuttlefish/package/contents/ui/Preview.qml @@ -260,7 +260,7 @@ } 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) diff --git a/cuttlefish/package/contents/ui/ResponsivePreview.qml b/cuttlefish/package/contents/ui/ResponsivePreview.qml --- a/cuttlefish/package/contents/ui/ResponsivePreview.qml +++ b/cuttlefish/package/contents/ui/ResponsivePreview.qml @@ -64,7 +64,7 @@ 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 @@ } } } -} \ No newline at end of file +}