Skip to content
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

Fix the splash screen to show on its own #4783

Merged
merged 4 commits into from
May 19, 2024

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented May 17, 2024

Identify the Bug or Feature request

Addresses #4782

Description of the Change

Mainly this change delays the JIDE layout load until we want the frame to be made visible. This avoids JIDE foisting a visible frame on us.

Also noticed there were some delays due to built in libraries. Sometimes we would get really unlucky and these would take a long time to load and would do so while we're trying to make our frame visible. To avoid this, we now explicitly init the LibraryManager early in the startup process. Also we no longer hash URLs in StatSheet because that does things like hostname lookups.

Possible Drawbacks

Should be none.

Documentation Notes

N/A

Release Notes

  • Fixed a bug where the main frame and splash screen were both shown during startup.

This change is Reviewable

The LibraryManager class is really expensive to load, so having it happen at some indeterminate time is not
great. Instead we now force it to load as part of the startup sequence.
Problem with URL hashing is that it tries to resolve hostnames, which is a bit excessive.
It has potential to be hit early in the init process, though so far we've dodged it. But there's no point not setting it
up right away and just avoiding the whole NPE situation.
This prevents JIDE from forcing the frame opening even though we don't want that. Another option is to set
`getDockingManager().setUseFrameBounds(false);` as that also won't cause the frame to show when we load our layout.
@kwvanderlinde kwvanderlinde self-assigned this May 17, 2024
@cwisniew cwisniew added this pull request to the merge queue May 19, 2024
Merged via the queue into RPTools:develop with commit f52be8c May 19, 2024
5 checks passed
@kwvanderlinde kwvanderlinde deleted the bugfix/4782-splash-screen branch May 20, 2024 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

2 participants