Perform more cleanup when timer is closed
Signed-off-by: William Brawner <me@wbrawner.com>
This commit is contained in:
parent
bc2219e0a9
commit
23ce8fb337
1 changed files with 3 additions and 0 deletions
|
@ -40,6 +40,9 @@ class TimerDataStore: ObservableObject {
|
||||||
|
|
||||||
func closeTimer() {
|
func closeTimer() {
|
||||||
self.activeTimer = nil
|
self.activeTimer = nil
|
||||||
|
self.timerCancellable?.cancel()
|
||||||
|
self.timerCancellable = nil
|
||||||
|
UIApplication.shared.isIdleTimerDisabled = false
|
||||||
}
|
}
|
||||||
|
|
||||||
func goBack() {
|
func goBack() {
|
||||||
|
|
Loading…
Reference in a new issue