From 4c6ce2e905affaff82de8894e895b141f8ce037d Mon Sep 17 00:00:00 2001 From: Keith Maika Date: Sat, 13 Feb 2021 12:07:22 -0500 Subject: [PATCH] Fix window not re-showing on MacOS --- main.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index abc023e..6335b91 100644 --- a/main.js +++ b/main.js @@ -152,9 +152,11 @@ app.on('window-all-closed', function () { }) app.on('activate', function () { - // On macOS it's common to re-create a window in the app when the - // dock icon is clicked and there are no other windows open. - if (mainWindow === null) createWindow() + if (mainWindow === null){ + createWindow() + } else { + mainWindow.show(); + } }) // In this file you can include the rest of your app's specific main process