Browse Source

Nil out timer when panel is closed.

master
Abhi 2 years ago
parent
commit
ea10cf7598
  1. 2
      Clocker/Panel/PanelController.swift

2
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)
}

Loading…
Cancel
Save