You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Fix ProgressDialog in single window mode
This commit is contained in:
@@ -166,11 +166,7 @@ void ProgressDialog::_popup() {
|
|||||||
|
|
||||||
center_panel->set_custom_minimum_size(ms);
|
center_panel->set_custom_minimum_size(ms);
|
||||||
|
|
||||||
Window *current_window = Window::get_from_id(DisplayServer::get_singleton()->get_focused_window());
|
Window *current_window = get_last_exclusive_window();
|
||||||
if (!current_window) {
|
|
||||||
current_window = get_tree()->get_root();
|
|
||||||
}
|
|
||||||
|
|
||||||
reparent(current_window);
|
reparent(current_window);
|
||||||
|
|
||||||
// Ensures that events are properly released before the dialog blocks input.
|
// Ensures that events are properly released before the dialog blocks input.
|
||||||
|
|||||||
Reference in New Issue
Block a user