1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Fix focus behavior in the Add Item Type dialog of the Theme editor

This commit is contained in:
Yuri Sizov
2021-07-17 13:20:10 +03:00
parent 76b0030821
commit 4bcdbf1280

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;
}
}