From f144a0056e81efb68e75e1c2995b206f80edee00 Mon Sep 17 00:00:00 2001 From: tiddlygit-test Date: Fri, 19 Mar 2021 01:29:55 +0800 Subject: [PATCH] fix: buildLanguageMenu never called --- src/main.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index a094f45c..e8ddcdba 100755 --- a/src/main.ts +++ b/src/main.ts @@ -113,6 +113,8 @@ if (!gotTheLock) { }); } await windowService.open(WindowNames.main); + buildLanguageMenu(); + // FIXME: this await is never ended await workspaceViewService.initializeAllWorkspaceView(); ipcMain.emit('request-update-pause-notifications-info'); @@ -144,9 +146,6 @@ if (!gotTheLock) { } // trigger whenTrulyReady ipcMain.emit(MainChannel.commonInitFinished); - - // build menu at last, this is not noticeable to user, so do it last - buildLanguageMenu(); }; app.on('ready', () => {