Skip to content

Commit

Permalink
Predicate for Linux non Unity cases
Browse files Browse the repository at this point in the history
  • Loading branch information
princejwesley committed Jul 17, 2016
1 parent 09ef0ae commit d39ca6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ app.on('browser-window-focus', (event, window) => {
window.$focus = true;
dockNotificationCache[window.id] = 0;
if (process.platform === 'darwin' ||
(process.platform === 'linux' &&
(process.platform === 'linux' && app.isUnityRunning &&
app.isUnityRunning())) {
app.setBadgeCount(0);
}
Expand Down Expand Up @@ -392,7 +392,7 @@ ipcMain.on('application:download', function(event, buffer) {
ipcMain.on('application:dock-message-notification', function(event, id) {
dockNotificationCache[id] = dockNotificationCache[id] + 1;
if (process.platform === 'darwin' ||
(process.platform === 'linux' &&
(process.platform === 'linux' && app.isUnityRunning &&
app.isUnityRunning())) {
app.setBadgeCount(dockNotificationCache[id]);
}
Expand Down

0 comments on commit d39ca6f

Please # to comment.