From 304650dd544cddef75c987ad5cda94efb1339ee1 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Thu, 4 Dec 2025 15:53:42 +1100 Subject: [PATCH] Make Reminder alarm proposed time be 5 minutes into the future (no point in being right now - that time is already passed) --- CHANGELOG.md | 1 + bouquin/reminders.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ceffab..38e59d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ * Allow 'this week', 'this month', 'this year' granularity in Timesheet reports. Default date range to start from this month. * Allow 'All Projects' for timesheet reports. + * Make Reminder alarm proposed time be 5 minutes into the future (no point in being right now - that time is already passed) # 0.6.2 diff --git a/bouquin/reminders.py b/bouquin/reminders.py index 0a6fa23..c17529a 100644 --- a/bouquin/reminders.py +++ b/bouquin/reminders.py @@ -79,7 +79,9 @@ class ReminderDialog(QDialog): parts = reminder.time_str.split(":") self.time_edit.setTime(QTime(int(parts[0]), int(parts[1]))) else: - self.time_edit.setTime(QTime.currentTime()) + # Default to 5 minutes in the future + future = QTime.currentTime().addSecs(5 * 60) + self.time_edit.setTime(future) self.form.addRow("&" + strings._("time") + ":", self.time_edit) # Recurrence type