From 1d9a3979057579f7e202126252067971b81d8719 Mon Sep 17 00:00:00 2001 From: Maigo Erit Date: Tue, 12 May 2020 22:48:15 +0300 Subject: [PATCH] show message inside menubar --- electron/app/app-updater.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/electron/app/app-updater.ts b/electron/app/app-updater.ts index 619283a0..c3d24286 100644 --- a/electron/app/app-updater.ts +++ b/electron/app/app-updater.ts @@ -38,11 +38,9 @@ export default class AppUpdater { logger.debug('Update downloaded'); if (!AppUpdater.dialogIsOpen) { - WindowManager.openMainWindow(); - AppUpdater.dialogIsOpen = true; - const { response } = await dialog.showMessageBox(WindowManager.mainWindow, { + const { response } = await dialog.showMessageBox(WindowManager.menubar.window(), { type: 'question', buttons: ['Update', 'Cancel'], defaultId: 0,