Skip to content

fix: quiet hours crash on save and missing startup persistence (#18)#20

Merged
Orinks merged 1 commit intodevfrom
fix/quiet-hours-crash
Feb 11, 2026
Merged

fix: quiet hours crash on save and missing startup persistence (#18)#20
Orinks merged 1 commit intodevfrom
fix/quiet-hours-crash

Conversation

@Orinks
Copy link
Owner

@Orinks Orinks commented Feb 10, 2026

Fixes #18

Problem: Settings dialog called set_quiet_hours() and referenced quiet_hours_enabled on ClockService, but neither existed — causing AttributeError when saving quiet hours settings. Quiet hours also weren't restored on startup.

Changes:

  • Added set_quiet_hours(start, end) method to ClockService
  • Added quiet_hours_enabled property (getter disables by clearing start/end)
  • Added quiet hours sync in app._sync_service_settings() so config is restored on load
  • Added tests for the new method and property

Testing: Lint passes. New tests cover set/get/disable flows.

@Orinks Orinks force-pushed the fix/quiet-hours-crash branch 2 times, most recently from bc3dfcc to cfc5294 Compare February 11, 2026 02:38
- Add set_quiet_hours() method and quiet_hours_enabled property to ClockService
- Add quiet hours save/restore to app.py _load_config() and save_config()
- Add tests for new method and property

Fixes #18
@Orinks Orinks force-pushed the fix/quiet-hours-crash branch from cfc5294 to 3bf0e40 Compare February 11, 2026 02:52
@Orinks Orinks merged commit 03347c7 into dev Feb 11, 2026
5 checks passed
@Orinks Orinks deleted the fix/quiet-hours-crash branch February 11, 2026 13:41
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.

1 participant