fix multiple tray icons

This commit is contained in:
cv
2021-06-14 21:45:43 +02:00
parent 3926ca3667
commit 7e6b86a72b
+5
View File
@@ -212,6 +212,11 @@ app.once('will-quit', () => {
globalShortcut.unregisterAll();
});
// destroy tray icon before quit
app.once('before-quit', () => {
tray.destroy();
});
// Get messages from react
// Test message
ipcMain.on('test-message', (event, arg) => {