mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
native menu fix for mac #281
This commit is contained in:
parent
fb61f263a6
commit
9ecf021199
@ -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;
|
||||
},
|
||||
|
@ -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;
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user