File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -851,7 +851,7 @@ void EditorNode::_notification(int p_what) {
851851
852852 command_palette->register_shortcuts_as_command ();
853853
854- callable_mp ( this , &EditorNode:: _begin_first_scan). call_deferred ();
854+ _begin_first_scan ();
855855
856856 last_dark_mode_state = DisplayServer::get_singleton ()->is_dark_mode ();
857857 last_system_accent_color = DisplayServer::get_singleton ()->get_accent_color ();
Original file line number Diff line number Diff line change @@ -166,6 +166,14 @@ void ProgressDialog::_popup() {
166166
167167 center_panel->set_custom_minimum_size (ms);
168168
169+ if (is_ready ()) {
170+ _reparent_and_show ();
171+ } else {
172+ callable_mp (this , &ProgressDialog::_reparent_and_show).call_deferred ();
173+ }
174+ }
175+
176+ void ProgressDialog::_reparent_and_show () {
169177 Window *current_window = SceneTree::get_singleton ()->get_root ()->get_last_exclusive_window ();
170178 ERR_FAIL_NULL (current_window);
171179 reparent (current_window);
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ class ProgressDialog : public CenterContainer {
8989 void _cancel_pressed ();
9090
9191 void _update_ui ();
92+ void _reparent_and_show ();
9293 bool canceled = false ;
9394
9495protected:
You can’t perform that action at this time.
0 commit comments