Make Reminder alarm proposed time be 5 minutes into the future (no point in being right now - that time is already passed)
Some checks failed
CI / test (push) Successful in 5m54s
Lint / test (push) Failing after 31s
Trivy / test (push) Successful in 23s

This commit is contained in:
Miguel Jacq 2025-12-04 15:53:42 +11:00
parent 9dc0a620be
commit 304650dd54
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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