Skip to content

fix(backlight): recreate FileMonitor after close#729

Open
TimERTy wants to merge 1 commit into
ErikReider:mainfrom
TimERTy:fix/backlight-monitor-reconnect
Open

fix(backlight): recreate FileMonitor after close#729
TimERTy wants to merge 1 commit into
ErikReider:mainfrom
TimERTy:fix/backlight-monitor-reconnect

Conversation

@TimERTy
Copy link
Copy Markdown

@TimERTy TimERTy commented Apr 22, 2026

Summary

  • FileMonitor is single-use: once monitor.cancel() runs in close() the same instance never emits changed again.
  • Monitor was created only in the constructor, so after the control center closed the first time, reopening left the slider stale.
  • Null monitor in close() and (re)create it lazily in connect_monitor() so every start() gets a live monitor.

Fixes #728

FileMonitor is single-use; cancel() in close() leaves it dead, so
the slider stopped updating on reopen. Null it in close() and
re-create lazily in connect_monitor().

Fixes ErikReider#728
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Backlight slider stops updating live after control center is closed once

1 participant