You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
CreateDialog: select root if search exactly match
This commit is contained in:
@@ -203,7 +203,7 @@ void CreateDialog::_update_search() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
List<StringName>::Element *I = type_list.front();
|
List<StringName>::Element *I = type_list.front();
|
||||||
TreeItem *to_select = NULL;
|
TreeItem *to_select = search_box->get_text() == base_type ? root : NULL;
|
||||||
|
|
||||||
for (; I; I = I->next()) {
|
for (; I; I = I->next()) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user