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

@@ -39,7 +39,7 @@
"electron-builder": "5.2.1",
"electron-connect": "^0.3.7",
"electron-packager": "^7.0.1",
"electron-prebuilt": "1.2.2",
"electron-prebuilt": "1.2.6",
"electron-winstaller": "^2.2.0",
"esformatter": "^0.9.3",
"esformatter-jsx": "^5.0.0",

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",