mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
To prevent crashes, catch thrown error from tray.setIcon
This commit is contained in:
committed by
Ken Powers
parent
9fd867fdd1
commit
ca1e6c3ccd
@@ -95,7 +95,14 @@ function createTrayIcon(getMainWindow, messages) {
|
||||
console.log('tray.updateIcon: Image for tray update does not exist!');
|
||||
return;
|
||||
}
|
||||
tray.setImage(image);
|
||||
try {
|
||||
tray.setImage(image);
|
||||
} catch (error) {
|
||||
console.log(
|
||||
'tray.setImage error:',
|
||||
error && error.stack ? error.stack : error
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
tray.on('click', tray.showWindow);
|
||||
|
||||
Reference in New Issue
Block a user