Skip to content

Commit

Permalink
fix end bug when saveto path not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
imenyoo2 committed Jun 14, 2023
1 parent 1ec5241 commit 622b102
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion polypomo
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ class Status:
if self.status == "work":
if self.active:
self.active = False
self.save() # save before switching if toggle didn't get called
if self.saveto:
self.save() # save before switching if toggle didn't get called
self.status = "break"
self.timer = Timer(self.breaktime)
elif self.status == "break":
Expand Down

0 comments on commit 622b102

Please sign in to comment.