You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Merge pull request #15492 from vigreco/select-tree-root
Select root node if search_box is empty in create_dialog
This commit is contained in:
@@ -316,6 +316,10 @@ void CreateDialog::_update_search() {
|
||||
}
|
||||
}
|
||||
|
||||
if (search_box->get_text() == "") {
|
||||
to_select = root;
|
||||
}
|
||||
|
||||
if (to_select) {
|
||||
to_select->select(0);
|
||||
search_options->scroll_to_item(to_select);
|
||||
|
||||
Reference in New Issue
Block a user