diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-26 23:14:56 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-26 23:14:56 +1000 |
| commit | b2a52486a68a9ad64286952ccc32744fb5a43e3a (patch) | |
| tree | 7f8e891d841aa37a057318d620e6b98f94f834d6 /modules/lock/Lock.qml | |
| parent | icons: some fixes for previous axes change (diff) | |
| download | caelestia-shell-b2a52486a68a9ad64286952ccc32744fb5a43e3a.tar.gz caelestia-shell-b2a52486a68a9ad64286952ccc32744fb5a43e3a.tar.bz2 caelestia-shell-b2a52486a68a9ad64286952ccc32744fb5a43e3a.zip | |
lock: add isLocked ipc handler
Fixes #165
Also add unlock ipc handler
Diffstat (limited to '')
| -rw-r--r-- | modules/lock/Lock.qml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/lock/Lock.qml b/modules/lock/Lock.qml index 27749ae..1d5176f 100644 --- a/modules/lock/Lock.qml +++ b/modules/lock/Lock.qml @@ -45,5 +45,13 @@ Scope { function lock(): void { loader.activeAsync = true; } + + function unlock(): void { + loader.item.locked = false; + } + + function isLocked(): bool { + return loader.active; + } } } |