mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
fix: focus mode flow time counter
This commit is contained in:
parent
f69a7ac5f6
commit
277d77fd5f
1 changed files with 3 additions and 1 deletions
|
|
@ -317,7 +317,9 @@ export class FocusModeMainComponent {
|
|||
}
|
||||
|
||||
onCountdownComplete(): void {
|
||||
this._store.dispatch(startFocusSession({ duration: this.displayDuration() }));
|
||||
// For Flowtime mode, duration must be 0 to count indefinitely
|
||||
const duration = this.mode() === FocusModeMode.Flowtime ? 0 : this.displayDuration();
|
||||
this._store.dispatch(startFocusSession({ duration }));
|
||||
// Main UI state transitions are now handled by the store
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue