Automatically reparent editor message dialogs to avoid error spam.

This commit is contained in:
bruvzg 2023-02-15 16:35:16 +02:00
parent 6cde3fac32
commit 921f3b7589
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
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