Change tooltip text on mentions/unread

This commit is contained in:
Kolja Lampe
2016-06-03 14:45:02 +02:00
parent aa92ee26e7
commit c615c54903

View File

@@ -197,12 +197,15 @@ app.on('ready', function() {
if (arg.mentionCount > 0) {
trayIcon.setImage(trayImages.mention);
trayIcon.setToolTip(arg.mentionCount + ' unread mentions');
}
else if (arg.unreadCount > 0) {
trayIcon.setImage(trayImages.unread);
trayIcon.setToolTip(arg.unreadCount + ' unread channels');
}
else {
trayIcon.setImage(trayImages.normal);
trayIcon.setToolTip(app.getName());
}
});
}