Make Tags and TimeLog optional features that can be switched on/off in Settings (enabled by default)
All checks were successful
CI / test (push) Successful in 4m31s
Lint / test (push) Successful in 1m2s
Trivy / test (push) Successful in 23s

This commit is contained in:
Miguel Jacq 2025-11-21 08:50:06 +11:00
parent f9ee150a23
commit 3e91f158c3
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
8 changed files with 49 additions and 18 deletions

View file

@ -20,6 +20,8 @@ def test_settings_dialog_config_roundtrip(qtbot, tmp_db_cfg, fresh_db):
dlg.idle_spin.setValue(3)
dlg.theme_light.setChecked(True)
dlg.move_todos.setChecked(True)
dlg.tags.setChecked(False)
dlg.time_log.setChecked(False)
# Auto-accept the modal QMessageBox that _compact_btn_clicked() shows
def _auto_accept_msgbox():
@ -34,6 +36,9 @@ def test_settings_dialog_config_roundtrip(qtbot, tmp_db_cfg, fresh_db):
dlg._save()
cfg = dlg.config
assert cfg.idle_minutes == 3
assert cfg.move_todos is True
assert cfg.tags is False
assert cfg.time_log is False
assert cfg.theme in ("light", "dark", "system")