refactor: using more oop
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import Quickshell
|
||||
import ZShell
|
||||
|
||||
Scope {
|
||||
id: root
|
||||
|
||||
required property var lock
|
||||
|
||||
|
||||
Connections {
|
||||
function onLidClosing(): void {
|
||||
root.lock.lock.locked = true;
|
||||
}
|
||||
|
||||
target: LidWatcher
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user