fixed bugs

- debug print removed
- timer cancel now behind an if statement
This commit is contained in:
Andrei Stoica 2020-02-02 14:43:09 -05:00
parent 48a2a10226
commit c333d11856
1 changed files with 2 additions and 3 deletions

View File

@ -29,8 +29,6 @@ else:
icons = {icon : path.join(sys.path[0], '../icons', icon + '.png') icons = {icon : path.join(sys.path[0], '../icons', icon + '.png')
for icon in ['Go', 'Wait', 'Stop']} for icon in ['Go', 'Wait', 'Stop']}
print(icons)
pomo_time = config.getint('DEFAULT','pomo_time') pomo_time = config.getint('DEFAULT','pomo_time')
break_time = config.getint('DEFAULT','break_time') break_time = config.getint('DEFAULT','break_time')
long_break = config.getint('DEFAULT','long_break') long_break = config.getint('DEFAULT','long_break')
@ -88,6 +86,7 @@ def stop_work():
def quit(): def quit():
global pomo_timer global pomo_timer
if pomo_timer:
pomo_timer.cancel() pomo_timer.cancel()
app.quit() app.quit()