restart option

master
Ondřej Hruška 7 years ago committed by GitHub
parent 15da610ae3
commit 95754dfd8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      pymodoro.py

@ -32,6 +32,9 @@ class Pymodoro:
if self.phase == PH_BREAK_OVER:
self.switch(PH_WORK)
elif self.phase == PH_WORK:
self.switch(PH_WORK) # restart
elif self.phase == PH_WORK_OVER:
self.switch(PH_BREAK)

Loading…
Cancel
Save