In my Electron app on MacOS I can get the app to display the main window if the icon in the dock is clicked using the activate event:
app.on('activate', () => {
log.info('activate')
win.show()
})
Which event to I need to use to display the main window when the user uses Cmd+tab to activate the app? The activate event is not being fired. The behaviour I'm looking for is like GitHub Desktop where using Cmd+tab to select the app will open the main window if it's not visible.