From ea10cf75984c4b3609e2a8335db7580e9ca9d228 Mon Sep 17 00:00:00 2001 From: Abhi Date: Sun, 23 Apr 2023 14:34:53 -0400 Subject: [PATCH] Nil out timer when panel is closed. --- Clocker/Panel/PanelController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Clocker/Panel/PanelController.swift b/Clocker/Panel/PanelController.swift index 0b11f08..c86811d 100644 --- a/Clocker/Panel/PanelController.swift +++ b/Clocker/Panel/PanelController.swift @@ -398,6 +398,8 @@ extension PanelController: NSWindowDelegate { } func windowDidResignKey(_: Notification) { + parentTimer = nil + if let isVisible = window?.isVisible, isVisible == true { setActivePanel(newValue: false) }