Launcher: wip image preview
This commit is contained in:
parent
ded133d164
commit
132dbce3a3
3 changed files with 55 additions and 53 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue