Editing splashScreen.destroy() to splashScreen.hide() causes unstable behavior! #831

Open
opened 2026-01-29 16:49:41 +00:00 by claunia · 0 comments
Owner

Originally created by @semihkiroglu on GitHub (Oct 19, 2022).

Change from destroy to hide at line 261 in main.js under ElectronNET.Host causes Electron.WindowManager.IsQuitOnWindowAllClosed to not work properly.

When the issue cited for this change was examined, it was stated that the problem was fixed for Electron 14 and above. Since ElectronNET works with Electron version 19, this regulation may not apply.

When I reverted this change and used destroy in my project, my window handlers started working fine. When I use hide, even though my main window is Electron.WindowManager.IsQuitOnWindowAllClosed = true, the processes did not terminate because the splashscreen was hide.

Maybe the necessity of this correction can be examined from different perspectives and taken back?

Originally created by @semihkiroglu on GitHub (Oct 19, 2022). Change from destroy to hide at [line 261 in main.js](https://github.com/ElectronNET/Electron.NET/blob/e9bf39316570655adca9ff8107e6e70d43577514/ElectronNET.Host/main.js#L261) under ElectronNET.Host causes Electron.WindowManager.IsQuitOnWindowAllClosed to not work properly. When the [issue cited for this change](https://github.com/electron/electron/issues/29050) was examined, it was stated that the problem was fixed for Electron 14 and above. Since ElectronNET works with Electron version 19, this regulation may not apply. When I reverted this change and used destroy in my project, my window handlers started working fine. When I use hide, even though my main window is Electron.WindowManager.IsQuitOnWindowAllClosed = true, the processes did not terminate because the splashscreen was hide. Maybe the necessity of this correction can be examined from different perspectives and taken back?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#831