-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Add support for long breaks and intervals
This commit refactors the code to add support for long breaks and intervals. It introduces a new struct `Interval` with properties such as name, color, duration, and message_done. The `execute_interval` function is modified to handle both short breaks and long breaks based on the `long_break_counter` variable. The code now allows for a specified number of work intervals before triggering a long break. This change improves the flexibility and customization of the interval timer functionality.
- Loading branch information
1 parent
48d801d
commit 1844ee8
Showing
1 changed file
with
50 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters