Fix lock flicker

This commit is contained in:
2026-05-15 10:03:55 -07:00
parent 391bd7dc16
commit dbb1bf55c9
3 changed files with 18 additions and 11 deletions

View File

@@ -12,9 +12,12 @@ ShellRoot {
Shell.Wall {}
Shell.TopBar {id: bar}
Shell.Boateye {}
Shell.Lock {
id: lock
animate: true
Shell.Lock {id: lock}
IpcHandler {
target: "lock"
function instalock() {lock.instalock()}
function open() {lock.open()}
function close() {lock.close()}
}
PanelWindow {
anchors {
@@ -26,10 +29,4 @@ ShellRoot {
implicitWidth: 800
HoverHandler {onHoveredChanged: {if (hovered) bar.open() }}
}
IpcHandler {
target: "lock"
function instalock() {lock.animate = false; lock.locked = true}
function open() {lock.animate = true; lock.locked = true}
function close() {lock.locked = false}
}
}