restart option

This commit is contained in:
2018-02-12 09:53:05 +01:00
committed by GitHub
parent 15da610ae3
commit 95754dfd8e
+3
View File
@@ -31,6 +31,9 @@ class Pymodoro:
def on_btn(self, snapshot, timestamp):
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)