Skip to content

fix: add set_quiet_hours method and persist quiet hours config#19

Closed
Orinks wants to merge 1 commit intodevfrom
fix-quiet-hours-crash
Closed

fix: add set_quiet_hours method and persist quiet hours config#19
Orinks wants to merge 1 commit intodevfrom
fix-quiet-hours-crash

Conversation

@Orinks
Copy link
Owner

@Orinks Orinks commented Feb 10, 2026

Summary

Fixes #18 — Quiet hours settings crash on save and aren't restored on startup.

Changes

  • ClockService: Added set_quiet_hours(start, end) method and quiet_hours_enabled attribute that the settings dialog was already calling (causing AttributeError)
  • app.py: Added quiet hours fields (quiet_hours_enabled, quiet_start, quiet_end) to _load_config(), save_config(), and _sync_service_settings()
  • Tests: Updated existing quiet hours tests to use set_quiet_hours(), added 2 new tests for the method and the enabled/disabled toggle

Testing

All 21 clock service tests pass.

- Add set_quiet_hours() method and quiet_hours_enabled attribute to
  ClockService, fixing AttributeError when saving quiet hours settings
- Add quiet hours persistence to app.py _load_config/save_config
- Sync quiet hours in _sync_service_settings on startup
- Update tests to use set_quiet_hours() and add new tests

Fixes #18
@Orinks
Copy link
Owner Author

Orinks commented Feb 11, 2026

Closing in favor of #20 which has better error handling and a cleaner property-based design. Thanks!

@Orinks Orinks closed this Feb 11, 2026
@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