Merge pull request #158 from Razzeee/improve-tray

Change tooltip text on mentions/unread
This commit is contained in:
Yuya Ochiai
2016-06-05 20:19:37 +09:00
2 changed files with 5 additions and 2 deletions

View File

@@ -201,12 +201,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());
}
});
}