Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/taskon-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
- name: Build Windows executable with PyInstaller (include assets)
shell: cmd
run: |
pyinstaller taskon/main.py --onefile --noconsole --name TaskOn --icon=taskon/assets/images/growing-seed.ico ^
pyinstaller taskon/main.py --onefile --noconsole --name TaskOn --icon=taskon/assets/images/growing-seed-main.ico ^
--add-data "taskon/assets/audio;assets/audio" ^
--add-data "taskon/assets/images;assets/images"

Expand Down
5 changes: 3 additions & 2 deletions taskon/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ def __init__(self, root, images, audio_service: IAudioService, config: TaskConfi
# --------------------------

def start(self):
"""Start a new session if no tick timer is running."""
if self.timer.is_tick_timer_running():
"""Start a new session if no tick timer or main timer is running."""
if (self.timer.is_tick_timer_running() or
self.timer.is_timer_running()):
return

session_type = self.task_manager.next_session()
Expand Down
Binary file added taskon/assets/images/growing-seed-main.ico
Binary file not shown.
10 changes: 5 additions & 5 deletions taskon/timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,17 @@ def __init__(self, root, on_tick, on_tick_alarm, on_tick_finish,
# Timer Start / Tick Methods
# --------------------------

def start_tick(self):
"""Start simple second-based countdown timer."""
logger.info("[START] Ticking Timer Start")
self._count_down_tick()

def start_timer(self, seconds):
"""Start main countdown timer."""
self.remaining = seconds
logger.info(f"[START] Main Timer For {seconds}s Start")
self._count_down_timer()

def start_tick(self):
"""Start simple second-based countdown timer."""
logger.info("[START] Ticking Timer Start")
self._count_down_tick()

def _count_down_tick(self):
"""Internal method: simple countdown in seconds."""
count_min = math.floor(self.counter_seconds / 60)
Expand Down
Loading