Skip to content

Commit 9996a9c

Browse files
committed
Fix #491: status bar menu flickers every 5s
1 parent 472b8ff commit 9996a9c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

MeetingBar/StatusBarItemController.swift

+5
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,11 @@ class StatusBarItemController: NSObject, NSMenuDelegate {
263263
*/
264264

265265
func updateMenu() {
266+
// Don't update the menu while it's open to avoid flickering
267+
if statusItem.button?.state == .on {
268+
return
269+
}
270+
266271
statusItemMenu.autoenablesItems = false
267272
statusItemMenu.removeAllItems()
268273

0 commit comments

Comments
 (0)