1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix ProcessDialog errors appeared after rebuilding .NET project

This commit is contained in:
DCTewi
2024-09-04 14:26:48 +08:00
parent e2dd56bea7
commit 5bfd8db7b7
3 changed files with 19 additions and 7 deletions

View File

@@ -1872,7 +1872,12 @@ void EditorFileSystem::_update_script_classes() {
EditorProgress *ep = nullptr;
if (update_script_paths.size() > 1) {
ep = memnew(EditorProgress("update_scripts_classes", TTR("Registering global classes..."), update_script_paths.size()));
if (MessageQueue::get_singleton()->is_flushing()) {
// Use background progress when message queue is flushing.
ep = memnew(EditorProgress("update_scripts_classes", TTR("Registering global classes..."), update_script_paths.size(), false, true));
} else {
ep = memnew(EditorProgress("update_scripts_classes", TTR("Registering global classes..."), update_script_paths.size()));
}
}
int step_count = 0;
@@ -1911,7 +1916,12 @@ void EditorFileSystem::_update_script_documentation() {
EditorProgress *ep = nullptr;
if (update_script_paths_documentation.size() > 1) {
ep = memnew(EditorProgress("update_script_paths_documentation", TTR("Updating scripts documentation"), update_script_paths_documentation.size()));
if (MessageQueue::get_singleton()->is_flushing()) {
// Use background progress when message queue is flushing.
ep = memnew(EditorProgress("update_script_paths_documentation", TTR("Updating scripts documentation"), update_script_paths_documentation.size(), false, true));
} else {
ep = memnew(EditorProgress("update_script_paths_documentation", TTR("Updating scripts documentation"), update_script_paths_documentation.size()));
}
}
int step_count = 0;