timche / gmail-desktop

:postbox: Nifty Gmail desktop app for macOS, Linux & Windows
MIT License
832 stars 91 forks source link

use hide window buttons on macos only #316

Closed DinCahill closed 2 years ago

DinCahill commented 2 years ago

I don't think the "Hide", "Hide Others" and "Show All" buttons do anything on Windows or Linux.

I removed the "Hide" and "Hide Others" accelerators because they are provided by default on macOS. "Hide Others" now gets set to Command+Option+H instead of Command+Shift+H. (Safari and Chrome use Command+Shift+H to go Home, so we could potentially use that hotkey to go to the inbox or something.)

The visible property doesn't hide separators (electron/electron#3494), so I've used a quick and dirty solution.