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:
parent
ab446b6977
commit
493acf07ae
7 changed files with 55 additions and 10 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue