Skip to content

Commit c22199f

Browse files
authored
Merge pull request element-hq#11326 from vector-im/dbkr/no_menubar_on_mac
Remove the 'auto hide menu bar' option on Mac
2 parents 7ca40be + 7af68bd commit c22199f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎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)