mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
fix menu bar visibility flag
This commit is contained in:
parent
ef395d14c1
commit
f259a382ff
3 changed files with 3 additions and 7 deletions
|
@ -90,13 +90,11 @@ class Api {
|
|||
};
|
||||
|
||||
setMenuBarVisibility (win, show) {
|
||||
const hide = !show;
|
||||
|
||||
ConfigManager.set({ hideMenuBar: hide }, () => {
|
||||
ConfigManager.set({ hideMenuBar: !show }, () => {
|
||||
Util.send(win, 'config', ConfigManager.config);
|
||||
|
||||
win.setMenuBarVisibility(show);
|
||||
win.setAutoHideMenuBar(hide);
|
||||
win.setAutoHideMenuBar(!show);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue