macOS fixes.

parent 129c7275
......@@ -58,6 +58,8 @@ function createWindow() {
showHideMainWindow(null, mainWindow, null);
});
} else {
app.dock.setIcon(normalIcon);
}
mainWindow.Notification = function (title, options) {
......@@ -88,7 +90,7 @@ app.on('activate', function () {
ipc.on("has-unread", function (event, count) {
mainWindow.setIcon(unreadIcon);
if (process.platform == "darwin") {
app.setBadgeCount(count);
app.dock.setIcon(unreadIcon);
} else {
tray.setImage(unreadIcon);
}
......@@ -97,9 +99,9 @@ ipc.on("has-unread", function (event, count) {
ipc.on("has-no-unread", function (event, count) {
mainWindow.setIcon(normalIcon);
if (process.platform == "darwin") {
app.setBadgeCount(count);
app.dock.setIcon(normalIcon);
} else {
tray.setImage(unreadIcon);
tray.setImage(normalIcon);
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment