1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 14:07:01 +09:00

JS-3259: fix

This commit is contained in:
Andrew Simachev 2023-10-30 14:02:17 +01:00
parent ab446b6977
commit 493acf07ae
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8
7 changed files with 55 additions and 10 deletions

View file

@ -24,7 +24,7 @@ class WindowManager {
create (options, param) {
const Api = require('./api.js');
const { route, isChild } = options;
const { languages, zoom } = ConfigManager.config;
const { languages, zoom, hideMenuBar } = ConfigManager.config;
param = Object.assign({
backgroundColor: Util.getBgColor('dark'),
@ -67,6 +67,11 @@ class WindowManager {
Api.setSpellingLang(win, languages);
Api.setZoom(win, zoom);
if (hideMenuBar) {
win.setMenuBarVisibility(false);
win.setAutoHideMenuBar(true);
};
return win;
};