1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-01-11 09:28:38 +00:00

Removed whitelines and semicolons

This commit is contained in:
MaandagDev 2020-01-24 01:19:36 +01:00
parent 5f876acc72
commit 0fabc660a2

View File

@ -36,7 +36,7 @@ class PomodoroBarItem: CustomButtonTouchBarItem, Widget {
}
//Vars are used for pausing the timer.
private var started = false
private var timerPaused: Bool = false;
private var timerPaused: Bool = false
private let defaultTitle = ""
private let workTime: TimeInterval
@ -66,25 +66,22 @@ class PomodoroBarItem: CustomButtonTouchBarItem, Widget {
}
@objc func startStopWork() {
if !started {
started = true;
started = true
typeTime = .work
startStopTimer()
} else {
if timerPaused {
timerPaused = false;
resumeTimer();
timerPaused = false
resumeTimer()
} else {
timerPaused = true;
pauseTimer();
timerPaused = true
pauseTimer()
}
}
print("short")
}
@objc func startStopRest() {
print("looong")
started = false;
started = false
typeTime = .rest
startStopTimer()
}
@ -95,12 +92,12 @@ class PomodoroBarItem: CustomButtonTouchBarItem, Widget {
func resumeTimer() {
guard let timervalue = timer else { return }
timervalue.resume();
timervalue.resume()
}
func pauseTimer() {
guard let timervalue = timer else { return }
timervalue.suspend();
timervalue.suspend()
}
private func start() {
@ -152,6 +149,4 @@ class PomodoroBarItem: CustomButtonTouchBarItem, Widget {
notification.soundName = "Submarine"
NSUserNotificationCenter.default.deliver(notification)
}
}