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

Display loading text while the project manager is loading #45785

Merged

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Feb 7, 2021

master version of #46026.

This hints the user that the project manager is currently busy loading the project. This is important for the HTML5 editor as the current feedback isn't very obvious.

This also removes the unused _exit_dialog function (also unused in 3.2).

Preview

image

@Calinou Calinou added enhancement topic:editor cherrypick:3.x Considered for cherry-picking into a future 3.x release labels Feb 7, 2021
@Calinou Calinou added this to the 4.0 milestone Feb 7, 2021
This hints the user that the project manager is currently busy
loading the project. This is important for the HTML5 editor as the
current feedback isn't very obvious.

This also removes the unused `_exit_dialog` function.
@Calinou Calinou force-pushed the project-manager-add-loading-text branch from 90461e8 to 8be5125 Compare February 7, 2021 01:04
@stijn-h
Copy link
Contributor

stijn-h commented Feb 7, 2021

Unnecessary on desktop and the placement of the text feels out of place.

@Calinou
Copy link
Member Author

Calinou commented Feb 7, 2021

Unnecessary on desktop and the placement of the text feels out of place.

I don't think it hurts to have on desktop either. Most of the time, you'll see it for less than 1 second anyway.

This could be moved to a progress dialog of some kind, but EditorProgress isn't usable in the project manager as far as I know (and often tries to be doing too much for what we need to do here).

@@ -2015,6 +2015,10 @@ void ProjectManager::_confirm_update_settings() {
}

void ProjectManager::_open_selected_projects() {
// Show loading text to tell the user that the project manager is busy loading.
// This is especially important for the HTML5 project manager.
loading_label->set_modulate(Color(1, 1, 1));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any code that would actually hide it again once it finished loading?

Copy link
Member Author

@Calinou Calinou Feb 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@akien-mga The project manager quits as soon as the project is starting to be opened. Therefore, there should be no need to hide the text.

@akien-mga akien-mga merged commit d3867b2 into godotengine:master Feb 12, 2021
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

It's not trivial to cherry-pick, so a dedicated PR would be good.

@Calinou Calinou removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Feb 14, 2021
@Calinou Calinou deleted the project-manager-add-loading-text branch March 31, 2021 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants