From 8b68fa4ea07dbdd04d4ba8c44d2c5df0e0197784 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 11 Mar 2019 23:18:04 -0400 Subject: [PATCH] init power monitor at end --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 9124e035a8..df040848d4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -91,17 +91,17 @@ export class Main { await this.i18nService.init(locale != null ? locale : app.getLocale()); this.messagingMain.init(); this.menuMain.init(); - this.powerMonitorMain.init(); await this.trayMain.init('Bitwarden', [{ label: this.i18nService.t('lockNow'), enabled: false, id: 'lockNow', click: () => this.messagingService.send('lockVault'), }]); - await this.updaterMain.init(); if (await this.storageService.get(ElectronConstants.enableStartToTrayKey)) { this.trayMain.hideToTray(); } + this.powerMonitorMain.init(); + await this.updaterMain.init(); }, (e: any) => { // tslint:disable-next-line console.error(e);