mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Merge pull request #1241 from shadowe1ite/main
annotation: re-add removed code
This commit is contained in:
@@ -1090,6 +1090,21 @@ SmartPanel {
|
||||
onClicked: entry.togglePin(entry.appId)
|
||||
}
|
||||
|
||||
// open an annotation tool for images
|
||||
NIconButton {
|
||||
visible: !!modelData.clipboardId && entry.isSelected && modelData.isImage && Settings.data.appLauncher.screenshotAnnotationTool !== ""
|
||||
icon: "pencil"
|
||||
tooltipText: I18n.tr("tooltips.open-annotation-tool")
|
||||
z: 1
|
||||
onClicked: {
|
||||
var tool = Settings.data.appLauncher.screenshotAnnotationTool;
|
||||
if (modelData.clipboardId) {
|
||||
Quickshell.execDetached(["sh", "-c", "cliphist decode " + modelData.clipboardId + " | " + tool]);
|
||||
root.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Delete action icon button for clipboard entries
|
||||
NIconButton {
|
||||
visible: !!modelData.clipboardId && entry.isSelected
|
||||
|
||||
Reference in New Issue
Block a user