From 7af68bddeabd7e527147c9fb9a0f292ece3f1871 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 5 Nov 2019 20:31:08 +0000 Subject: [PATCH] Remove the 'auto hide menu bar' option on Mac The menu bar is at the top of the screen on Mac so this setting does absolutely nothing. --- src/vector/platform/ElectronPlatform.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vector/platform/ElectronPlatform.js b/src/vector/platform/ElectronPlatform.js index dd4df4e63..78dce4985 100644 --- a/src/vector/platform/ElectronPlatform.js +++ b/src/vector/platform/ElectronPlatform.js @@ -200,7 +200,8 @@ export default class ElectronPlatform extends VectorBasePlatform { } supportsAutoHideMenuBar(): boolean { - return true; + // This is irelevant on Mac as Menu bars don't live in the app window + return !navigator.platform.toUpperCase().includes('MAC'); } async getAutoHideMenuBarEnabled(): boolean {