End a running idle cycle when both timeouts are set to 0

With both at 0 the monitor is disabled and handleIdleChanged returns early, so a cycle already running when shell.json changed never cancels: omarchy-system-wake never runs, and if the screensaver never opened a window nothing else ends it. Cancel it the way turning on stay-awake does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Codex Medium <noreply@openai.com>
This commit is contained in:
committed 2026-10-01 12:30:46 +02:00
1 parent 3839d0b4e0
commit 3cebdc3412
2 files changed
+7

No files matched your search

+3
View File
@@ -263,6 +263,9 @@ Item {
return applyStayAwake(!value, true, "ipc")
}
// With both timeouts at 0 the monitor stops reporting, so nothing else would end a running cycle.
onIdleTimersEnabledChanged: if (!idleTimersEnabled) cancelIdleCycle("idle-timers-disabled")
IdleMonitor {
id: idleMonitor
enabled: root.idleEnabled && root.idleTimersEnabled