summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-26 23:14:56 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-26 23:14:56 +1000
commitb2a52486a68a9ad64286952ccc32744fb5a43e3a (patch)
tree7f8e891d841aa37a057318d620e6b98f94f834d6 /modules
parenticons: some fixes for previous axes change (diff)
downloadcaelestia-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 'modules')
-rw-r--r--modules/lock/Lock.qml8
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;
+ }
}
}