From acb5b33b758f1f485bc0fa6a30f05c9f53027770 Mon Sep 17 00:00:00 2001 From: tiddlygit-test Date: Sat, 15 May 2021 22:02:07 +0800 Subject: [PATCH] Update index.ts --- src/services/windows/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/windows/index.ts b/src/services/windows/index.ts index 304c8ef5..aba3a328 100644 --- a/src/services/windows/index.ts +++ b/src/services/windows/index.ts @@ -138,7 +138,7 @@ export class Window implements IWindowService { y: mainWindowState.y, width: mainWindowState.width, height: mainWindowState.height, - alwaysOnTop: this.preferenceService.get('alwaysOnTop'), + alwaysOnTop: await this.preferenceService.get('alwaysOnTop'), }; } const windowConfig: BrowserWindowConstructorOptions = { @@ -501,6 +501,7 @@ export class Window implements IWindowService { preloadWindow: true, tooltip: i18n.t('Menu.TiddlyGit'), browserWindow: mergeDeep(windowConfig, { + show: false, x: menubarWindowState.x, y: menubarWindowState.y, width: menubarWindowState.width,