Allow hiding menu bar on Linux
The UI feature to auto-hide the menu bar works on Linux as well as Windows. Don't ignore it if the config value is set.
This commit is contained in:
@@ -61,7 +61,7 @@ app.on('window-all-closed', function() {
|
||||
|
||||
// For win32, auto-hide menu bar.
|
||||
app.on('browser-window-created', function(event, window) {
|
||||
if (process.platform === 'win32') {
|
||||
if (process.platform === 'win32' || process.platform === 'linux') {
|
||||
if (config.hideMenuBar) {
|
||||
window.setAutoHideMenuBar(true);
|
||||
window.setMenuBarVisibility(false);
|
||||
|
Reference in New Issue
Block a user