Browse Source

Ensure the tray icon is destoryed when the app is closed

reviewable/pr190/r8
Samuel Attard 6 years ago
parent
commit
094abc62c3
  1. 6
      src/main/features/core/tray.js

6
src/main/features/core/tray.js

@ -22,3 +22,9 @@ appIcon.on('double-click', () => {
// DEV: Keep the icon in the global scope or it gets garbage collected........
global.appIcon = appIcon;
app.on('before-quit', () => {
appIcon.destroy();
delete global.appIcon;
appIcon = null;
});

Loading…
Cancel
Save