mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-01-11 09:28:38 +00:00
Merge branch 'master' into hotfix/fixing-pomodoro-widget
This commit is contained in:
commit
7a20bd78e7
@ -34,6 +34,7 @@ class PomodoroBarItem: CustomButtonTouchBarItem, Widget {
|
|||||||
case rest
|
case rest
|
||||||
case none
|
case none
|
||||||
}
|
}
|
||||||
|
|
||||||
//Vars are used for pausing the timer.
|
//Vars are used for pausing the timer.
|
||||||
private var started = false
|
private var started = false
|
||||||
private var timerPaused: Bool = false;
|
private var timerPaused: Bool = false;
|
||||||
@ -79,11 +80,9 @@ class PomodoroBarItem: CustomButtonTouchBarItem, Widget {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print("short")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func startStopRest() {
|
@objc func startStopRest() {
|
||||||
print("looong")
|
|
||||||
started = false;
|
started = false;
|
||||||
typeTime = .rest
|
typeTime = .rest
|
||||||
startStopTimer()
|
startStopTimer()
|
||||||
@ -152,6 +151,4 @@ class PomodoroBarItem: CustomButtonTouchBarItem, Widget {
|
|||||||
notification.soundName = "Submarine"
|
notification.soundName = "Submarine"
|
||||||
NSUserNotificationCenter.default.deliver(notification)
|
NSUserNotificationCenter.default.deliver(notification)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user