mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix Editor wayland first scan task error.
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
This commit is contained in:
parent
006e3f26b9
commit
1cc459d86f
3 changed files with 10 additions and 1 deletions
|
|
@ -166,6 +166,14 @@ void ProgressDialog::_popup() {
|
|||
|
||||
center_panel->set_custom_minimum_size(ms);
|
||||
|
||||
if (is_ready()) {
|
||||
_reparent_and_show();
|
||||
} else {
|
||||
callable_mp(this, &ProgressDialog::_reparent_and_show).call_deferred();
|
||||
}
|
||||
}
|
||||
|
||||
void ProgressDialog::_reparent_and_show() {
|
||||
Window *current_window = SceneTree::get_singleton()->get_root()->get_last_exclusive_window();
|
||||
ERR_FAIL_NULL(current_window);
|
||||
reparent(current_window);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue