aboutsummaryrefslogtreecommitdiffstats
path: root/src/electron/ipc-api/appIndicator.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/electron/ipc-api/appIndicator.js')
-rw-r--r--src/electron/ipc-api/appIndicator.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/electron/ipc-api/appIndicator.js b/src/electron/ipc-api/appIndicator.js
index 9957ef5fc..bea8e7751 100644
--- a/src/electron/ipc-api/appIndicator.js
+++ b/src/electron/ipc-api/appIndicator.js
@@ -25,6 +25,19 @@ export default (params) => {
25 }); 25 });
26 26
27 ipcMain.on('updateAppIndicator', (event, args) => { 27 ipcMain.on('updateAppIndicator', (event, args) => {
28
29 // Flash TaskBar for windows, bounce Dock on Mac
30 if (!app.mainWindow.isFocused()) {
31 if (params.settings.app.get('notifyTaskBarOnMessage')) {
32 if (process.platform === 'win32') {
33 app.mainWindow.flashFrame(true);
34 app.mainWindow.once('focus', () => app.mainWindow.flashFrame(false));
35 } else if (process.platform === 'darwin') {
36 app.dock.bounce('informational');
37 }
38 }
39 }
40
28 // Update badge 41 // Update badge
29 if (process.platform === 'darwin' 42 if (process.platform === 'darwin'
30 && typeof (args.indicator) === 'string') { 43 && typeof (args.indicator) === 'string') {