diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-09-14 19:58:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-14 19:58:52 +0200 |
commit | 95df3522a15631abc51a4295cae0ea401a8d4e1e (patch) | |
tree | e5eb0f368c947683f01458e912f21756fb0d99cb /src/electron/ipc-api/appIndicator.ts | |
parent | docs: add sad270 as a contributor for bug, userTesting [skip ci] (#1941) (diff) | |
download | ferdium-app-95df3522a15631abc51a4295cae0ea401a8d4e1e.tar.gz ferdium-app-95df3522a15631abc51a4295cae0ea401a8d4e1e.tar.zst ferdium-app-95df3522a15631abc51a4295cae0ea401a8d4e1e.zip |
feat: add eslint-plugin-unicorn (#1936)
Diffstat (limited to 'src/electron/ipc-api/appIndicator.ts')
-rw-r--r-- | src/electron/ipc-api/appIndicator.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/electron/ipc-api/appIndicator.ts b/src/electron/ipc-api/appIndicator.ts index 5b5f2bac7..a51ed8161 100644 --- a/src/electron/ipc-api/appIndicator.ts +++ b/src/electron/ipc-api/appIndicator.ts | |||
@@ -34,8 +34,7 @@ export default params => { | |||
34 | 34 | ||
35 | ipcMain.on('updateAppIndicator', (_event, args) => { | 35 | ipcMain.on('updateAppIndicator', (_event, args) => { |
36 | // Flash TaskBar for windows, bounce Dock on Mac | 36 | // Flash TaskBar for windows, bounce Dock on Mac |
37 | if (!(app as any).mainWindow.isFocused()) { | 37 | if (!(app as any).mainWindow.isFocused() && params.settings.app.get('notifyTaskBarOnMessage')) { |
38 | if (params.settings.app.get('notifyTaskBarOnMessage')) { | ||
39 | if (isWindows) { | 38 | if (isWindows) { |
40 | (app as any).mainWindow.flashFrame(true); | 39 | (app as any).mainWindow.flashFrame(true); |
41 | (app as any).mainWindow.once('focus', () => | 40 | (app as any).mainWindow.once('focus', () => |
@@ -45,7 +44,6 @@ export default params => { | |||
45 | app.dock.bounce('informational'); | 44 | app.dock.bounce('informational'); |
46 | } | 45 | } |
47 | } | 46 | } |
48 | } | ||
49 | 47 | ||
50 | // Update badge | 48 | // Update badge |
51 | if (isMac && typeof args.indicator === 'string') { | 49 | if (isMac && typeof args.indicator === 'string') { |