Skip to content

Commit

Permalink
Reset short break counter to 0 on cycling off
Browse files Browse the repository at this point in the history
  • Loading branch information
jake158 committed Mar 15, 2024
1 parent bd4f045 commit cf82e0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pomodorodiscord/src/pomodoro_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def reset(self, to:str="pomodoro_time", default:int=DEF_POMODORO_MINS):
# TODO: Make cleaner?
self.pomodoro_time = int(config.get(to, default) * 60)
self.auto_break_cycling = config.get("auto_break_cycling", False)
self.short_break_counter = 0 if not self.auto_break_cycling else self.short_break_counter
self.short_breaks_before_long = config.get("short_breaks_before_long", DEF_SB_BEFORE_L)

# Reset the timer
Expand Down

0 comments on commit cf82e0d

Please sign in to comment.