init power monitor at end

This commit is contained in:
Kyle Spearrin 2019-03-11 23:18:04 -04:00
parent 6facf3f2cf
commit 8b68fa4ea0
1 changed files with 2 additions and 2 deletions

View File

@ -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<boolean>(ElectronConstants.enableStartToTrayKey)) {
this.trayMain.hideToTray();
}
this.powerMonitorMain.init();
await this.updaterMain.init();
}, (e: any) => {
// tslint:disable-next-line
console.error(e);