Fix window not re-showing on MacOS
This commit is contained in:
parent
ff0bf695a8
commit
4c6ce2e905
8
main.js
8
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
|
||||
|
|
Loading…
Reference in New Issue