mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Select root node if search_box is empty in create_dialog
(cherry picked from commit 586e735125)
This commit is contained in:
committed by
Hein-Pieter van Braam
parent
611caa06a5
commit
7f5fde6459
@@ -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