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 #134
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.