fixed bugs
- debug print removed - timer cancel now behind an if statement
This commit is contained in:
parent
48a2a10226
commit
c333d11856
|
|
@ -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()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue