mirror of
https://github.com/netbirdio/systray.git
synced 2026-05-22 17:08:41 -07:00
Merge pull request #172 from getlantern/169-macos-disable-submenu
Allows disabling items in submenu on macOS
This commit is contained in:
@@ -121,6 +121,7 @@ withParentMenuId: (int)theParentMenuId
|
||||
theMenu = parentItem.submenu;
|
||||
} else {
|
||||
theMenu = [[NSMenu alloc] init];
|
||||
[theMenu setAutoenablesItems:NO];
|
||||
[parentItem setSubmenu:theMenu];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user