Launcher: wip image preview

This commit is contained in:
LemmyCook 2025-09-03 09:22:27 -04:00
parent ded133d164
commit 132dbce3a3
3 changed files with 55 additions and 53 deletions

View file

@ -39,6 +39,8 @@ Singleton {
property string _b64CurrentMime: ""
property string _b64CurrentId: ""
signal listCompleted()
// Check if cliphist is available
Component.onCompleted: {
checkCliphistAvailability()
@ -147,6 +149,9 @@ Singleton {
})
items = parsed
loading = false
// Emit the signal for subscribers
root.listCompleted()
}
}
@ -285,10 +290,12 @@ Singleton {
}
function getImageData(id) {
if (id === undefined) {
return null
}
return root.imageDataById[id]
}
function _startNextB64() {
if (root._b64Queue.length === 0 || !root.cliphistAvailable)
return