Fix progress dialog steals focus
Co-authored-by: Hilderin <81109165+Hilderin@users.noreply.github.com>
This commit is contained in:
@ -336,6 +336,7 @@ WindowWrapper::WindowWrapper() {
|
||||
}
|
||||
|
||||
window = memnew(Window);
|
||||
window_id = window->get_instance_id();
|
||||
window->set_wrap_controls(true);
|
||||
|
||||
add_child(window);
|
||||
@ -354,6 +355,12 @@ WindowWrapper::WindowWrapper() {
|
||||
ProgressDialog::get_singleton()->add_host_window(window);
|
||||
}
|
||||
|
||||
WindowWrapper::~WindowWrapper() {
|
||||
if (ObjectDB::get_instance(window_id)) {
|
||||
ProgressDialog::get_singleton()->remove_host_window(window);
|
||||
}
|
||||
}
|
||||
|
||||
// ScreenSelect
|
||||
|
||||
void ScreenSelect::_build_advanced_menu() {
|
||||
|
||||
Reference in New Issue
Block a user