1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

Close to tray (#21)

* Close to Tray implemented

* Enable Tray Icon on Linux

* Remove unnecessary function

* Revert 26a3a98e384cc62a94f2b213af3a6543874b3d95
This commit is contained in:
h44z
2018-12-03 21:55:43 +01:00
committed by Kyle Spearrin
parent 5609fecbce
commit d5308a3bf5
4 changed files with 21 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ const Keys = {
export class WindowMain {
win: BrowserWindow;
isQuitting: boolean = false;
private windowStateChangeTimer: NodeJS.Timer;
private windowStates: { [key: string]: any; } = {};
@@ -39,6 +40,12 @@ export class WindowMain {
}
}
// This method will be called when Electron is shutting
// down the application.
app.on('before-quit', () => {
this.isQuitting = true;
});
// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.