This commit is contained in:
Jonas Schwabe
2016-06-29 21:28:43 +02:00
parent 04fe0fd336
commit 54f6447712
3 changed files with 5 additions and 9 deletions

View File

@@ -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:

View File

@@ -1,6 +1,7 @@
{
"name": "mattermost-desktop",
"productName": "Mattermost",
"desktopName": "Mattermost.desktop",
"version": "1.3.0",
"description": "Mattermost Desktop application for Windows, Mac and Linux",
"main": "main.js",