mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
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.
This commit is contained in:
parent
7ca40bed32
commit
7af68bddea
@ -200,7 +200,8 @@ export default class ElectronPlatform extends VectorBasePlatform {
|
|||||||
}
|
}
|
||||||
|
|
||||||
supportsAutoHideMenuBar(): boolean {
|
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 {
|
async getAutoHideMenuBarEnabled(): boolean {
|
||||||
|
Loading…
Reference in New Issue
Block a user