Skip to content

Commit 7af68bd

Browse files
committed
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.
1 parent 7ca40be commit 7af68bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vector/platform/ElectronPlatform.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ export default class ElectronPlatform extends VectorBasePlatform {
200200
}
201201

202202
supportsAutoHideMenuBar(): boolean {
203-
return true;
203+
// This is irelevant on Mac as Menu bars don't live in the app window
204+
return !navigator.platform.toUpperCase().includes('MAC');
204205
}
205206

206207
async getAutoHideMenuBarEnabled(): boolean {

0 commit comments

Comments
 (0)