Skip to content

Commit

Permalink
show message inside menubar
Browse files Browse the repository at this point in the history
  • Loading branch information
Maigo Erit committed May 12, 2020
1 parent e543d54 commit 1d9a397
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions electron/app/app-updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1d9a397

Please sign in to comment.