Merge pull request #199 from jnugh/unityMessageBadge

Ubuntu Unity counter badge
This commit is contained in:
Yuya Ochiai
2016-08-04 23:04:31 +09:00
committed by GitHub
3 changed files with 5 additions and 8 deletions

View File

@@ -519,13 +519,9 @@ var showUnreadBadgeOSX = function(unreadCount, mentionCount) {
}
var showUnreadBadgeLinux = function(unreadCount, mentionCount) {
/*if (mentionCount > 0) {
remote.app.dock.setBadge(mentionCount.toString());
} else if (unreadCount > 0) {
remote.app.dock.setBadge('•');
} else {
remote.app.dock.setBadge('');
}*/
if (remote.app.isUnityRunning()) {
remote.app.setBadgeCount(mentionCount);
}
ipcRenderer.send('update-unread', {
unreadCount: unreadCount,