mirror of
https://github.com/godotengine/godot.git
synced 2025-04-07 00:44:24 +08:00
Merge pull request #100596 from bruvzg/flt_upd
[EditorFileDialog] Do not update file selection on filter change if nothing was previously selected.
This commit is contained in:
commit
6c04997d0d
@ -1511,9 +1511,11 @@ void EditorFileDialog::_filter_changed(const String &p_text) {
|
||||
search_string = p_text;
|
||||
invalidate();
|
||||
|
||||
item_list->deselect_all();
|
||||
if (item_list->get_item_count() > 0) {
|
||||
item_list->call_deferred("select", 0);
|
||||
if (item_list->get_selected_items().size() > 0) {
|
||||
item_list->deselect_all();
|
||||
if (item_list->get_item_count() > 0) {
|
||||
item_list->call_deferred("select", 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user