Skip to content

Fix restart_timer losing timer info - #79

Merged
nemacysts merged 1 commit into
masterfrom
luisp/fix-snooze-timer-verb
Oct 13, 2026
Merged

nemacysts merged 1 commit into
masterfrom
luisp/fix-snooze-timer-verb

Conversation

@nemacysts

Copy link
Copy Markdown
Member

restart_timer() called cancel_timer() before start_timer(), and cancel_timer() clears timer_trigger and timer_message_verb, so the restarted timer was started with trigger=None and message_verb=None ("Will None in 1800 seconds"), and would trigger None when it fired. extra_text was never saved, so it was also dropped on restart.

start_timer() already cancels the matching timer, so drop the redundant cancel and save/pass extra_text too.

restart_timer() called cancel_timer() before start_timer(), and
cancel_timer() clears timer_trigger and timer_message_verb, so the
restarted timer was started with trigger=None and message_verb=None
("Will None in 1800 seconds"), and would trigger None when it fired.
extra_text was never saved, so it was also dropped on restart.

start_timer() already cancels the matching timer, so drop the redundant
cancel and save/pass extra_text too.
@nemacysts
nemacysts merged commit 063fa4e into master Oct 13, 2026
2 checks passed
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.

2 participants