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:
11
src/main.ts
11
src/main.ts
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user