You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Keep focus on floating window when showing ProgressDialog
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user