forked from Shinonome/dots-hyprland
TimerService: not have stupid extra declaration
This commit is contained in:
@@ -52,10 +52,9 @@ Singleton {
|
|||||||
// Work <-> break ?
|
// Work <-> break ?
|
||||||
if (getCurrentTimeInSeconds() >= Persistent.states.timer.pomodoro.start + pomodoroLapDuration) {
|
if (getCurrentTimeInSeconds() >= Persistent.states.timer.pomodoro.start + pomodoroLapDuration) {
|
||||||
// Reset counts
|
// Reset counts
|
||||||
const currentTimeInSeconds = getCurrentTimeInSeconds();
|
|
||||||
Persistent.states.timer.pomodoro.isBreak = !Persistent.states.timer.pomodoro.isBreak;
|
Persistent.states.timer.pomodoro.isBreak = !Persistent.states.timer.pomodoro.isBreak;
|
||||||
Persistent.states.timer.pomodoro.isLongBreak = Persistent.states.timer.pomodoro.isBreak && (pomodoroCycle + 1 == cyclesBeforeLongBreak);
|
Persistent.states.timer.pomodoro.isLongBreak = Persistent.states.timer.pomodoro.isBreak && (pomodoroCycle + 1 == cyclesBeforeLongBreak);
|
||||||
Persistent.states.timer.pomodoro.start = currentTimeInSeconds;
|
Persistent.states.timer.pomodoro.start = getCurrentTimeInSeconds();
|
||||||
|
|
||||||
// Send notification
|
// Send notification
|
||||||
let notificationMessage;
|
let notificationMessage;
|
||||||
|
|||||||
Reference in New Issue
Block a user