1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

start to tray updates

This commit is contained in:
Kyle Spearrin
2019-02-02 12:27:06 -05:00
parent a380188120
commit 65845cd909
5 changed files with 23 additions and 28 deletions

View File

@@ -1,8 +1,4 @@
import {
app,
BrowserWindow,
MenuItemConstructorOptions,
} from 'electron';
import { app } from 'electron';
import * as path from 'path';
import { I18nService } from './services/i18n.service';
@@ -12,9 +8,9 @@ import { MessagingMain } from './main/messaging.main';
import { PowerMonitorMain } from './main/powerMonitor.main';
import { ConstantsService } from 'jslib/services/constants.service';
import { ElectronConstants } from 'jslib/electron/electronConstants';
import { LowdbStorageService } from 'jslib/services/lowdbStorage.service';
import { ElectronConstants } from 'jslib/electron/electronConstants';
import { KeytarStorageListener } from 'jslib/electron/keytarStorageListener';
import { ElectronLogService } from 'jslib/electron/services/electronLog.service';
import { ElectronMainMessagingService } from 'jslib/electron/services/electronMainMessaging.service';
@@ -104,8 +100,7 @@ export class Main {
click: () => this.messagingService.send('lockVault'),
}]);
await this.updaterMain.init();
if(await this.storageService.get<boolean>(ElectronConstants.enableStartMinimizedKey)) {
if (await this.storageService.get<boolean>(ElectronConstants.enableStartToTrayKey)) {
this.trayMain.hideToTray();
}
}, (e: any) => {