-
-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[improv]: electron side changes to window behavior #3300
Conversation
window now has a background which should prevent flashing of white, window is shown after its contents are loaded
I think we need to find a different solution because the problem seems to be that the This pr is kinda working around that issue but not fully solving it, that hardcoded color is not great (cause now the page wont blink, but it will start black and then change to another color). I played around and seems like the issue is this call to We should wait until the application is ready and the window is displayed to decide if it should be maximized instead. Because I also noticed the blinking doesn't seem to happen if the app is not maximized when closed. |
related to the removal of the loadingScreenReady event, maybe it can be replaced with https://www.electronjs.org/docs/latest/api/browser-window#event-ready-to-show instead of I'm not sure about that change though, the different between the custom event we have and the electron events is that ours should wait until the loading screen is ready, and the electron one doesn't know about the loading screen and it can show the app before that (without a blink, but also without the loading screen animation) |
Indeed,
I think it should be fine, the loading indicator is the first thing that displays on the page after being "loaded". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
window now has a background which should prevent flashing of white,
window is shown after its contents are loaded - removed our custom loadingScreenReady event
additionally I replaced deprecated
protocol.registerStringProtocol
in favor ofprotocol.handle
Use the following Checklist if you have changed something on the Backend or Frontend: