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

Tray icon (#84)

* Implemented configurable tray icon

* Fixed calls to callAnalytics using wrong indicators
This commit is contained in:
tstumm
2018-05-04 18:45:42 +02:00
committed by Kyle Spearrin
parent c612f3487b
commit 0f2d1e73b4
7 changed files with 83 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ import { I18nService } from './services/i18n.service';
import { MenuMain } from './main/menu.main';
import { MessagingMain } from './main/messaging.main';
import { PowerMonitorMain } from './main/powerMonitor.main';
import { TrayMain } from './main/tray.main';
import { UpdaterMain } from './main/updater.main';
import { ConstantsService } from 'jslib/services/constants.service';
@@ -28,6 +29,7 @@ export class Main {
updaterMain: UpdaterMain;
menuMain: MenuMain;
powerMonitorMain: PowerMonitorMain;
trayMain: TrayMain;
constructor() {
// Set paths for portable builds
@@ -66,6 +68,7 @@ export class Main {
this.updaterMain = new UpdaterMain(this);
this.menuMain = new MenuMain(this);
this.powerMonitorMain = new PowerMonitorMain(this);
this.trayMain = new TrayMain(this);
this.messagingService = new ElectronMainMessagingService(this.windowMain, (message) => {
this.messagingMain.onMessage(message);
@@ -82,6 +85,7 @@ export class Main {
this.messagingMain.init();
this.menuMain.init();
this.powerMonitorMain.init();
this.trayMain.init();
await this.updaterMain.init();
}, (e: any) => {
// tslint:disable-next-line