1
0
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:
maandagdev 2020-01-08 16:17:22 +01:00 committed by GitHub
commit 7a20bd78e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,7 @@ class PomodoroBarItem: CustomButtonTouchBarItem, Widget {
case rest
case none
}
//Vars are used for pausing the timer.
private var started = false
private var timerPaused: Bool = false;
@ -79,11 +80,9 @@ class PomodoroBarItem: CustomButtonTouchBarItem, Widget {
}
}
print("short")
}
@objc func startStopRest() {
print("looong")
started = false;
typeTime = .rest
startStopTimer()
@ -152,6 +151,4 @@ class PomodoroBarItem: CustomButtonTouchBarItem, Widget {
notification.soundName = "Submarine"
NSUserNotificationCenter.default.deliver(notification)
}
}