launcher: focus actual current wall
Also thumbnailer kill process before starting new proc
This commit is contained in:
parent
1a650b73bc
commit
c650f4392d
2 changed files with 4 additions and 2 deletions
|
|
@ -20,10 +20,10 @@ PathView {
|
|||
list.length -= 1; // Always show odd number
|
||||
return list;
|
||||
}
|
||||
onValuesChanged: root.currentIndex = search ? 0 : values.findIndex(w => w.path === Wallpapers.current)
|
||||
onValuesChanged: root.currentIndex = search ? 0 : values.findIndex(w => w.path === Wallpapers.actualCurrent)
|
||||
}
|
||||
|
||||
Component.onCompleted: currentIndex = Wallpapers.list.findIndex(w => w.path === Wallpapers.current)
|
||||
Component.onCompleted: currentIndex = Wallpapers.list.findIndex(w => w.path === Wallpapers.actualCurrent)
|
||||
Component.onDestruction: Wallpapers.stopPreview()
|
||||
|
||||
onCurrentItemChanged: {
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ Singleton {
|
|||
onRead: data => {
|
||||
const sha = data.split(" ")[0];
|
||||
obj.path = `${root.thumbDir}/${sha}@${obj.width}x${obj.height}-exact.png`;
|
||||
obj.thumbProc.signal(9);
|
||||
obj.thumbProc.running = true;
|
||||
}
|
||||
}
|
||||
|
|
@ -62,6 +63,7 @@ end`]
|
|||
}
|
||||
|
||||
function reload(): void {
|
||||
shaProc.signal(9);
|
||||
shaProc.running = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue