Implements #176
This commit is contained in:
@@ -508,13 +508,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,
|
||||
@@ -531,7 +527,6 @@ var showUnreadBadge = function(unreadCount, mentionCount) {
|
||||
showUnreadBadgeOSX(unreadCount, mentionCount);
|
||||
break;
|
||||
case 'linux':
|
||||
console.log(unreadCount);
|
||||
showUnreadBadgeLinux(unreadCount, mentionCount);
|
||||
break;
|
||||
default:
|
||||
|
Reference in New Issue
Block a user