Fix error case where tray icon is already destroyed
This commit is contained in:
parent
a9af3c2dcb
commit
02c63395b5
|
@ -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') {
|
||||||
|
|
Loading…
Reference in a new issue