diff options
author | 2018-02-15 15:36:30 -0500 | |
---|---|---|
committer | 2018-02-15 15:36:30 -0500 | |
commit | 3960288e02e9f501de26ba6a4d685c30eef7b898 (patch) | |
tree | 7eedb317f67aaf0d63a06d3336191c6ec6a086ac /src | |
parent | Fix bug with notifications click changing window's state (diff) | |
download | ferdium-app-3960288e02e9f501de26ba6a4d685c30eef7b898.tar.gz ferdium-app-3960288e02e9f501de26ba6a4d685c30eef7b898.tar.zst ferdium-app-3960288e02e9f501de26ba6a4d685c30eef7b898.zip |
Restore windows behavior for notifications and add linux support
Issue #645
Diffstat (limited to 'src')
-rw-r--r-- | src/stores/AppStore.js | 9 |
1 files changed, 6 insertions, 3 deletions
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'; | |||
9 | import Store from './lib/Store'; | 9 | import Store from './lib/Store'; |
10 | import Request from './lib/Request'; | 10 | import Request from './lib/Request'; |
11 | import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; | 11 | import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; |
12 | import { isMac } from '../environment'; | 12 | import { isMac, isLinux, isWindows } from '../environment'; |
13 | import locales from '../i18n/translations'; | 13 | import locales from '../i18n/translations'; |
14 | import { gaEvent } from '../lib/analytics'; | 14 | import { gaEvent } from '../lib/analytics'; |
15 | 15 | ||
@@ -179,8 +179,11 @@ export default class AppStore extends Store { | |||
179 | 179 | ||
180 | this.actions.service.setActive({ serviceId }); | 180 | this.actions.service.setActive({ serviceId }); |
181 | 181 | ||
182 | if (!isMac) { | 182 | const mainWindow = remote.getCurrentWindow(); |
183 | const mainWindow = remote.getCurrentWindow(); | 183 | |
184 | if (isWindows) { | ||
185 | mainWindow.restore(); | ||
186 | } else if (isLinux) { | ||
184 | mainWindow.show(); | 187 | mainWindow.show(); |
185 | } | 188 | } |
186 | } | 189 | } |