mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-12 10:04:44 +01:00
init power monitor at end
This commit is contained in:
parent
6facf3f2cf
commit
8b68fa4ea0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user