When minToTray is enabled, destroy the window on close/iconify instead of simply calling iconify. Whenever deiconify is called, check whether there's a mainWindow to deiconify and if not, create it.
I'm not getting an event trigger when I click the iconify button. Still gotta figure that out.
When minToTray is enabled, destroy the window on close/iconify instead of simply calling iconify. Whenever deiconify is called, check whether there's a mainWindow to deiconify and if not, create it.
I'm not getting an event trigger when I click the iconify button. Still gotta figure that out.