1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-19 14:31:59 +00:00

Automatically reparent editor message dialogs to avoid error spam.

(cherry picked from commit 921f3b7589)
This commit is contained in:
bruvzg
2023-02-15 16:35:16 +02:00
committed by Yuri Sizov
parent d929784491
commit 764fe8ac51
6 changed files with 113 additions and 44 deletions

View File

@@ -221,9 +221,7 @@ bool ProgressDialog::task_step(const String &p_task, const String &p_state, int
t.state->set_text(p_state);
last_progress_tick = OS::get_singleton()->get_ticks_usec();
if (cancel_hb->is_visible()) {
DisplayServer::get_singleton()->process_events();
}
DisplayServer::get_singleton()->process_events();
#ifndef ANDROID_ENABLED
Main::iteration(); // this will not work on a lot of platforms, so it's only meant for the editor