mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-20 14:38:26 +00:00
Don't create tray form unread counts on Windows + macOS
This commit is contained in:
@@ -181,6 +181,7 @@ ipcRenderer.on('tray', (event, arg) => {
|
||||
return;
|
||||
}
|
||||
|
||||
if (process.platform === 'linux')
|
||||
if (arg === 0) {
|
||||
unread = arg;
|
||||
// Message Count // console.log("message count is zero.");
|
||||
@@ -204,10 +205,12 @@ function toggleTray() {
|
||||
ConfigUtil.setConfigItem('trayIcon', false);
|
||||
} else {
|
||||
createTray();
|
||||
if (process.platform === 'linux') {
|
||||
renderNativeImage(unread).then(image => {
|
||||
window.tray.setImage(image);
|
||||
window.tray.setToolTip(unread + ' unread messages');
|
||||
});
|
||||
}
|
||||
ConfigUtil.setConfigItem('trayIcon', true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user