From 7a85b19e5a073dee817f06eaa072f71175a42902 Mon Sep 17 00:00:00 2001 From: kobewi Date: Wed, 22 Jan 2025 21:22:31 +0100 Subject: [PATCH] Fix ProgressDialog in single window mode --- editor/progress_dialog.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/editor/progress_dialog.cpp b/editor/progress_dialog.cpp index ae06116797f..dae7578a4eb 100644 --- a/editor/progress_dialog.cpp +++ b/editor/progress_dialog.cpp @@ -166,11 +166,7 @@ void ProgressDialog::_popup() { center_panel->set_custom_minimum_size(ms); - Window *current_window = Window::get_from_id(DisplayServer::get_singleton()->get_focused_window()); - if (!current_window) { - current_window = get_tree()->get_root(); - } - + Window *current_window = get_last_exclusive_window(); reparent(current_window); // Ensures that events are properly released before the dialog blocks input.