1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

Allow app to start minimized (as tray icon) (#169)

* Allow app to start minimized (as tray icon)

* Rever german locale
This commit is contained in:
h44z
2019-02-02 18:16:32 +01:00
committed by Kyle Spearrin
parent b55ab576ef
commit a380188120
4 changed files with 28 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ 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 { KeytarStorageListener } from 'jslib/electron/keytarStorageListener';
@@ -103,6 +104,10 @@ export class Main {
click: () => this.messagingService.send('lockVault'),
}]);
await this.updaterMain.init();
if(await this.storageService.get<boolean>(ElectronConstants.enableStartMinimizedKey)) {
this.trayMain.hideToTray();
}
}, (e: any) => {
// tslint:disable-next-line
console.error(e);