diff options
author | trollodel <33117082+trollodel@users.noreply.github.com> | 2023-10-13 22:05:02 +0200 |
---|---|---|
committer | trollodel <33117082+trollodel@users.noreply.github.com> | 2023-10-15 22:13:13 +0200 |
commit | 9ae48c72b41d688f27e6a1142a4ea809f068699c (patch) | |
tree | 7d359755d085f7e57c576c39cc493b0b45e8d1ad /editor/window_wrapper.cpp | |
parent | 6916349697a4339216469e9bf5899b983d78db07 (diff) | |
download | redot-engine-9ae48c72b41d688f27e6a1142a4ea809f068699c.tar.gz |
Keep focus on floating window when showing ProgressDialog
Diffstat (limited to 'editor/window_wrapper.cpp')
-rw-r--r-- | editor/window_wrapper.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/window_wrapper.cpp b/editor/window_wrapper.cpp index a5c862ffd6..2d89e4df46 100644 --- a/editor/window_wrapper.cpp +++ b/editor/window_wrapper.cpp @@ -34,6 +34,7 @@ #include "editor/editor_scale.h" #include "editor/editor_settings.h" #include "editor/editor_string_names.h" +#include "editor/progress_dialog.h" #include "scene/gui/box_container.h" #include "scene/gui/label.h" #include "scene/gui/panel.h" @@ -332,6 +333,8 @@ WindowWrapper::WindowWrapper() { window_background = memnew(Panel); window_background->set_anchors_and_offsets_preset(PRESET_FULL_RECT); window->add_child(window_background); + + ProgressDialog::get_singleton()->add_host_window(window); } // ScreenSelect |