From 672d6fd9efbf4674223491914a7b661afcaf3db9 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Mon, 1 Feb 2021 10:18:42 -0600 Subject: [PATCH] Fix stuck times. --- Clocker/Panel/PanelController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Clocker/Panel/PanelController.swift b/Clocker/Panel/PanelController.swift index 2798e00..d571d09 100644 --- a/Clocker/Panel/PanelController.swift +++ b/Clocker/Panel/PanelController.swift @@ -270,7 +270,8 @@ class PanelController: ParentPanelController { func minimize() { let delegate = NSApplication.shared.delegate as? AppDelegate - if DataStore.shared().shouldDisplay(.showMeetingInMenubar) == true { + let count = DataStore.shared().menubarTimezones()?.count ?? 0 + if count >= 1 || DataStore.shared().shouldDisplay(.showMeetingInMenubar) == true { if let handler = delegate?.statusItemForPanel(), let timer = handler.menubarTimer, !timer.isValid { delegate?.setupMenubarTimer() }