Merge pull request #11326 from vector-im/dbkr/no_menubar_on_mac

Remove the 'auto hide menu bar' option on Mac
pull/11343/head
David Baker 2019-11-05 20:39:27 +00:00 committed by GitHub
commit c22199f92f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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 {