diff options
Diffstat (limited to 'src/stores/AppStore.js')
-rw-r--r-- | src/stores/AppStore.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 869cfa9d6..529201df5 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -333,7 +333,9 @@ export default class AppStore extends Store { | |||
333 | this.actions.service.setActive({ | 333 | this.actions.service.setActive({ |
334 | serviceId, | 334 | serviceId, |
335 | }); | 335 | }); |
336 | mainWindow.show(); | 336 | if (!app.mainWindow.isVisible()) { |
337 | mainWindow.show(); | ||
338 | } | ||
337 | if (app.mainWindow.isMinimized()) { | 339 | if (app.mainWindow.isMinimized()) { |
338 | mainWindow.restore(); | 340 | mainWindow.restore(); |
339 | } | 341 | } |