summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--app/main.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/main.js b/app/main.js
index 6bf18490a3..e9b7412854 100644
--- a/app/main.js
+++ b/app/main.js
@@ -32,6 +32,7 @@ const ApplicationMain = {
log.info(`Running version ${app.getVersion()}`);
+ app.on('activate', () => this._onActivate());
app.on('ready', () => this._onReady());
app.on('window-all-closed', () => app.quit());
app.on('before-quit', () => this._onBeforeQuit());
@@ -121,6 +122,13 @@ const ApplicationMain = {
}
},
+ _onActivate() {
+ const windowController = this._windowController;
+ if (windowController) {
+ windowController.show();
+ }
+ },
+
_onBeforeQuit() {
this._shouldQuit = true;
return true;