Fix error case where tray icon is already destroyed
This commit is contained in:
@@ -471,7 +471,7 @@ app.on('ready', () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (trayIcon) {
|
if (trayIcon && !trayIcon.isDestroyed()) {
|
||||||
if (arg.mentionCount > 0) {
|
if (arg.mentionCount > 0) {
|
||||||
trayIcon.setImage(trayImages.mention);
|
trayIcon.setImage(trayImages.mention);
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
|
Reference in New Issue
Block a user