mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
There is some chance 'ready-to-show' event is fired before ReadyToShow event is registered #137
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jijiechen on GitHub (Mar 28, 2018).
Originally assigned to: @GregorBiswanger on GitHub.
Sometimes, the BrowserWindow's
ready-to-showis fired before the ReadyToShow event handler of CSharp object is synced and registered onto the BrowserWindow JavaScript object.In this case, the ReadyToShow event handler will never be executed.
In the following code, the browserWindow would never be shown:
This case occurred randomly and especially more frequent on Windows systems.
It seems by adding some status caching in
BrowserWindow.jsand invoke the event handler immediately if the event handler is bound after the 'ready-to-show' has been triggered once, we can solve this problem.@The-MAZZTer commented on GitHub (Feb 10, 2019):
I can confirm this on 0.0.9 and 0.0.11. My window is configured to open on ReadyToShow and half the time nothing happens when I run my program.
I'm on Windows 10.
@GregorBiswanger commented on GitHub (May 22, 2019):
fixed in Electron.NET 5.22.12.
@LordKanelsnegle commented on GitHub (Jun 5, 2019):
I'm still encountering this error while using 5.22.12
@schotime commented on GitHub (Jul 8, 2019):
I"m still getting this on 5.22.13