Skip to content

Commit

Permalink
Add deafult short breaks before long val
Browse files Browse the repository at this point in the history
  • Loading branch information
jake158 committed Mar 15, 2024
1 parent fff4cdc commit 982d0c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pomodorodiscord/src/settings_frame.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
import customtkinter as ctk
from src.utils import load_config, save_config, reload_app, DEF_POMODORO_MINS, DEF_SB_MINS, DEF_LB_MINS, beep
from src.utils import load_config, save_config, reload_app, DEF_POMODORO_MINS, DEF_SB_MINS, DEF_LB_MINS, DEF_SB_BEFORE_L, beep


class EntryFrame(ctk.CTkFrame):
Expand Down Expand Up @@ -37,7 +37,7 @@ def __init__(self, master):
self.abcycling_switch.pack(pady=(10, 0))

# Short Breaks Before Long Break
self.sb_before_l_entry = EntryFrame(self, "Short breaks before\nlong break (if auto cycling):", config, "short_breaks_before_long", 3, self.change_sb_before_l)
self.sb_before_l_entry = EntryFrame(self, "Short breaks before\nlong break (if auto cycling):", config, "short_breaks_before_long", DEF_SB_BEFORE_L, self.change_sb_before_l)
self.sb_before_l_entry.pack(pady=(10, 0))

# Pomodoro Duration
Expand Down
4 changes: 3 additions & 1 deletion pomodorodiscord/src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
# Until user sets custom pomodoro, short break, long break durations, this gets set
DEF_POMODORO_MINS = 25
DEF_SB_MINS = 5
DEF_LB_MINS = 10
DEF_LB_MINS = 15
# Default amount of short breaks before a long break (for auto break cycling)
DEF_SB_BEFORE_L = 3


def load_file(filename, on_no_file=None):
Expand Down

0 comments on commit 982d0c7

Please sign in to comment.