Merge pull request #1241 from shadowe1ite/main

annotation: re-add removed code
This commit is contained in:
Lysec
2026-01-03 17:47:44 +01:00
committed by GitHub
+15
View File
@@ -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