From c333d11856ea0eb8444e882ac758d7a7f2ee9ec1 Mon Sep 17 00:00:00 2001 From: Andrei Stoica Date: Sun, 2 Feb 2020 14:43:09 -0500 Subject: [PATCH] fixed bugs - debug print removed - timer cancel now behind an if statement --- src/pomodoro-desktop.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pomodoro-desktop.py b/src/pomodoro-desktop.py index 549c9e4..9420034 100644 --- a/src/pomodoro-desktop.py +++ b/src/pomodoro-desktop.py @@ -29,8 +29,6 @@ else: icons = {icon : path.join(sys.path[0], '../icons', icon + '.png') for icon in ['Go', 'Wait', 'Stop']} -print(icons) - pomo_time = config.getint('DEFAULT','pomo_time') break_time = config.getint('DEFAULT','break_time') long_break = config.getint('DEFAULT','long_break') @@ -88,7 +86,8 @@ def stop_work(): def quit(): global pomo_timer - pomo_timer.cancel() + if pomo_timer: + pomo_timer.cancel() app.quit()