diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-08-09 12:38:29 -0300 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-08-09 12:38:29 -0300 |
| commit | e2940d7ee231dd8624675904153bfefb0a38f3c4 (patch) | |
| tree | 16d8c168db82b04d160d16eef38edf97766acf7d /app | |
| parent | 5dec7ac11971f53ea8583c24b9eceb8ff28a776c (diff) | |
| download | mullvadvpn-e2940d7ee231dd8624675904153bfefb0a38f3c4.tar.xz mullvadvpn-e2940d7ee231dd8624675904153bfefb0a38f3c4.zip | |
Don't show notifications when window is visible
Diffstat (limited to 'app')
| -rw-r--r-- | app/notification-controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/notification-controller.js b/app/notification-controller.js index eafdea0445..1d6138d404 100644 --- a/app/notification-controller.js +++ b/app/notification-controller.js @@ -9,7 +9,7 @@ export default class NotificationController { const lastNotification = this._activeNotification; const sameAsLastNotification = lastNotification && lastNotification.body === message; - if (sameAsLastNotification) { + if (sameAsLastNotification || remote.getCurrentWindow().isVisible()) { return; } |
