1
0
Fork 0

Merge pull request #99990 from KoBeWi/update_tree_after_updating_tree

Fix FileSystem dock filter reset when tree rebuilds
This commit is contained in:
Thaddeus Crews 2024-12-04 11:02:11 -06:00
commit 1f47e4c4e3
No known key found for this signature in database
GPG Key ID: 62181B86FE9E5D84
1 changed files with 4 additions and 0 deletions

View File

@ -452,6 +452,10 @@ void FileSystemDock::_update_tree(const Vector<String> &p_uncollapsed_paths, boo
// Create the remaining of the tree.
_create_tree(root, EditorFileSystem::get_singleton()->get_filesystem(), uncollapsed_paths, p_select_in_favorites, p_unfold_path);
if (!searched_tokens.is_empty()) {
_update_filtered_items();
}
tree->ensure_cursor_is_visible();
updating_tree = false;
}