From 982ced6bf1e9aead4a88dd4113871249ed92e66c Mon Sep 17 00:00:00 2001 From: Joesis Date: Mon, 14 Sep 2020 00:08:48 -0700 Subject: [PATCH] Allows disabling items in submenu on macOS Fixes https://github.com/getlantern/systray/issues/169 --- systray_darwin.m | 1 + 1 file changed, 1 insertion(+) diff --git a/systray_darwin.m b/systray_darwin.m index 8336c1f..d434073 100644 --- a/systray_darwin.m +++ b/systray_darwin.m @@ -121,6 +121,7 @@ withParentMenuId: (int)theParentMenuId theMenu = parentItem.submenu; } else { theMenu = [[NSMenu alloc] init]; + [theMenu setAutoenablesItems:NO]; [parentItem setSubmenu:theMenu]; } }