From 29044576fa4948abfcd14cf9a73ae8175a312fe2 Mon Sep 17 00:00:00 2001 From: Davide Masserut Date: Tue, 1 Nov 2022 17:04:54 +0100 Subject: [PATCH] Stop playing a sound after overtime --- org-pomodoro.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org-pomodoro.el b/org-pomodoro.el index 0705f39..11cf8bc 100644 --- a/org-pomodoro.el +++ b/org-pomodoro.el @@ -627,7 +627,9 @@ kill the current timer, this may be a break or a running pomodoro." (cond ;; possibly break from overtime ((and (org-pomodoro-active-p) (eq org-pomodoro-state :overtime)) - (org-pomodoro-finished)) + ;; Do not play a sound after overtime + (let (org-pomodoro-finished-sound-p) + (org-pomodoro-finished))) ;; Maybe kill running pomodoro ((org-pomodoro-active-p) (if (or (not org-pomodoro-ask-upon-killing)