How can I restore my app from tray?


#1

I found solution by the following link Electron.js How to minimize/close window to system tray and restore window back from tray?

But…

mainWindow.on('minimize',function(event){
event.preventDefault()
    mainWindow.hide();
});

If I minimize my mainWindow and click Show App my app hangs and doesn’t have any reactions on clicks. What should I do to reach the goal?


#2

Link
I missed the link. Sorry!