1
0
mirror of https://github.com/bitwarden/browser synced 2025-01-23 01:33:02 +01:00

Avoid destroying the tray icon in linux (#227)

This commit is contained in:
Oscar Hinton 2020-12-15 21:26:51 +01:00 committed by GitHub
parent cc801ce0d7
commit d7b5f0a26b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,9 @@ export class TrayMain {
}
removeTray(showWindow = true) {
if (this.tray != null) {
// Due to https://github.com/electron/electron/issues/17622
// we cannot destroy the tray icon on linux.
if (this.tray != null && process.platform !== 'linux') {
this.tray.destroy();
this.tray = null;
}