From f0c67c0483616a9bb93c8a6484e89f4ab2972d64 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sun, 5 Jul 2026 22:27:20 +0545 Subject: [PATCH] fix(src/window/panel/notch): ensure monitoring started on indicator access --- src/window/panel/notch/indicators.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/window/panel/notch/indicators.py b/src/window/panel/notch/indicators.py index 4514051..50e728f 100644 --- a/src/window/panel/notch/indicators.py +++ b/src/window/panel/notch/indicators.py @@ -112,6 +112,10 @@ class CapsLockIndicator(Box): ) ) + # Accessing is_on triggers _ensure_monitoring_started() inside the service — + # without this the 500ms LED poll never begins and state_changed never fires. + _ = self._caps.is_on + self._caps.connect("state_changed", self._on_state_changed) def _on_state_changed(self, _service, is_on: bool):