milgra / macmediakeyforwarder

Media Key Forwarder for iTunes and Spotify
The Unlicense
1.26k stars 85 forks source link

Add ability to hide the menu bar #93

Closed jcoynel closed 5 years ago

jcoynel commented 5 years ago

This PR adds an option to run the app without being visible in the menu bar and should address issue #77.

If you select "Hide from menu bar", the menu is hidden and the app is added to the login items. In order to make the menu visible again, you have to open the app manually (handled by applicationShouldHandleReopen:hasVisibleWindows:). This may not be a very obvious behaviour. An alert with some explanations could be easily added.

I’ve only tested this code on Catalina, but it should work with previous versions as I've been using the same approach for many years in Tunes Notifier (https://github.com/jcoynel/Tunes-Notifier). If you'd like to try the confirmation alert mentioned above, it's being used in Tunes Notifier.

milgra commented 5 years ago

Cool, thank you very much!!!