The macOS menu bar can be pretty small on laptops with a screen notch. This PR adds a small macOS-only function to enable some optional behavior, NSStatusItemBehaviorRemovalAllowed, which allows removing an icon with cmd-drag.
It seems though this is stored in the application preferences, and so once hidden, an application can't come back! To work around that and keep a very simple API, applications using systray will always return to the menu bar on startup. This seemed like an okay compromise.
The macOS menu bar can be pretty small on laptops with a screen notch. This PR adds a small macOS-only function to enable some optional behavior, NSStatusItemBehaviorRemovalAllowed, which allows removing an icon with cmd-drag.
It seems though this is stored in the application preferences, and so once hidden, an application can't come back! To work around that and keep a very simple API, applications using
systray
will always return to the menu bar on startup. This seemed like an okay compromise.