Merge pull request #50547 from pycbouh/editor-theme-eagerly-grab-focus-on-popup-and-never-let-go

Fix focus behavior in the Add Item Type dialog of the Theme editor
This commit is contained in:
Rémi Verschelde 2021-07-17 14:39:13 +02:00 committed by GitHub
commit 7537875d86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2015,6 +2015,12 @@ void ThemeTypeDialog::_notification(int p_what) {
case NOTIFICATION_THEME_CHANGED: {
_update_add_type_options();
} break;
case NOTIFICATION_VISIBILITY_CHANGED: {
if (is_visible()) {
add_type_filter->grab_focus();
}
} break;
}
}