From b82bbc8459f1ad140755bfbdfcbae9390162d5c4 Mon Sep 17 00:00:00 2001 From: Stefan Date: Sat, 2 Dec 2017 23:16:57 +0100 Subject: fix(Windows): Open window when clicking on toast notification Closes #370 --- src/stores/AppStore.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 6125a7cff..8c55a350d 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js @@ -163,6 +163,11 @@ export default class AppStore extends Store { }); this.actions.service.setActive({ serviceId }); + + if (!isMac) { + const mainWindow = remote.getCurrentWindow(); + mainWindow.restore(); + } } }; } -- cgit v1.2.3-54-g00ecf