cliphist image: cleanup decoded img on destruction

This commit is contained in:
end-4
2025-05-29 09:21:56 +02:00
parent d00ffdd0f1
commit 9503ca2129
@@ -69,6 +69,10 @@ Rectangle {
} }
} }
Component.onDestruction: {
Hyprland.dispatch(`exec bash -c "[ -f '${imageDecodeFilePath}' ] && rm -f '${imageDecodeFilePath}'"`)
}
Image { Image {
id: image id: image
anchors.fill: parent anchors.fill: parent