native menu fix for mac #281

This commit is contained in:
Jan Prochazka 2022-05-22 10:35:16 +02:00
parent fb61f263a6
commit 9ecf021199
2 changed files with 3 additions and 1 deletions

View File

@ -73,7 +73,8 @@ module.exports = {
...value,
};
if (value['app.useNativeMenu'] !== true && value['app.useNativeMenu'] !== false) {
res['app.useNativeMenu'] = os.platform() == 'darwin' ? true : false;
// res['app.useNativeMenu'] = os.platform() == 'darwin' ? true : false;
res['app.useNativeMenu'] = false;
}
return res;
},

View File

@ -110,6 +110,7 @@ export const visibleTitleBar = derived(useSettings(), $settings => {
if (nativeMenuOnStartup == null) {
nativeMenuOnStartup = !!$settings['app.useNativeMenu'];
}
// console.log('nativeMenuOnStartup', nativeMenuOnStartup);
return !$settings['app.fullscreen'] && !nativeMenuOnStartup;
});