1
0
Fork 0
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:
Andrew Simachev 2024-02-12 18:09:36 +01:00
parent ef395d14c1
commit f259a382ff
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8
3 changed files with 3 additions and 7 deletions

View file

@ -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);
});
};