You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or simply clone the Electron Quick Start repo and make the following changes in main.js
Additional Information
This does not happen on Mac. I did not test on Linux. As far as I understand, if the window is showing then the ready-to-show event will never fire, as described in the docs where it says "the ready-to-show event will be emitted when the renderer process has rendered the page for the first time if the window has not been shown yet.". However calling window.hide() does not show the window, so ready-to-show should still fire.
I could imagine how this might be intended behavior if it were consistent between operating systems, but the fact that it is specific to Windows makes me think it is indeed a bug in electron.
The text was updated successfully, but these errors were encountered:
danny-does-stuff
changed the title
ready-to-show event is never fired after calling browserWindow.hide() in Windows
ready-to-show event is never fired after calling browserWindow.hide() on Windows
Aug 5, 2020
Preflight Checklist
Issue Details
Expected Behavior
Calling
browserWindow.hide()
after creating anew BrowserWindow()
on windows should not preclude the ready-to-show event from being fired.Actual Behavior
In Windows, after creating a BrowserWindow and calling
browserWindow.hide()
, the ready-to-show event is never fired.To Reproduce
** ON WINDOWS **
Either use this Electron Fiddle: https://gist.github.com/dannyharding10/7b38139009012817608c0ea8a2ba29bc
Or simply clone the Electron Quick Start repo and make the following changes in main.js
Additional Information
This does not happen on Mac. I did not test on Linux. As far as I understand, if the window is showing then the
ready-to-show
event will never fire, as described in the docs where it says "the ready-to-show event will be emitted when the renderer process has rendered the page for the first time if the window has not been shown yet.". However callingwindow.hide()
does not show the window, soready-to-show
should still fire.I could imagine how this might be intended behavior if it were consistent between operating systems, but the fact that it is specific to Windows makes me think it is indeed a bug in electron.
The text was updated successfully, but these errors were encountered: