From 605444b14953c881215d6b42995fd72c9d5f3de4 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Tue, 2 Dec 2025 14:58:45 +1100 Subject: [PATCH] Ensure time log dialog gets closed when Pomodoro Timer finishes and user logs time. --- CHANGELOG.md | 1 + bouquin/pomodoro_timer.py | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e568e64..e2c767d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # 0.6.1 * Consolidate some code related to opening documents using the Documents feature. + * Ensure time log dialog gets closed when Pomodoro Timer finishes and user logs time. * More code coverage # 0.6.0 diff --git a/bouquin/pomodoro_timer.py b/bouquin/pomodoro_timer.py index aa83566..445120c 100644 --- a/bouquin/pomodoro_timer.py +++ b/bouquin/pomodoro_timer.py @@ -139,7 +139,12 @@ class PomodoroManager: # Open time log dialog dlg = TimeLogDialog( - self._db, date_iso, self._parent, True, themes=self._parent.themes + self._db, + date_iso, + self._parent, + True, + themes=self._parent.themes, + close_after_add=True, ) # Pre-fill the hours