From 3960288e02e9f501de26ba6a4d685c30eef7b898 Mon Sep 17 00:00:00 2001 From: RĂ©mi Weislinger Date: Thu, 15 Feb 2018 15:36:30 -0500 Subject: Restore windows behavior for notifications and add linux support Issue #645 --- src/stores/AppStore.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/stores/AppStore.js') diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index e70ad16ef..a51a3267f 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js @@ -9,7 +9,7 @@ import prettyBytes from 'pretty-bytes'; import Store from './lib/Store'; import Request from './lib/Request'; import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; -import { isMac } from '../environment'; +import { isMac, isLinux, isWindows } from '../environment'; import locales from '../i18n/translations'; import { gaEvent } from '../lib/analytics'; @@ -179,8 +179,11 @@ export default class AppStore extends Store { this.actions.service.setActive({ serviceId }); - if (!isMac) { - const mainWindow = remote.getCurrentWindow(); + const mainWindow = remote.getCurrentWindow(); + + if (isWindows) { + mainWindow.restore(); + } else if (isLinux) { mainWindow.show(); } } -- cgit v1.2.3-70-g09d2