Scroll back to top when changing directory in FileSystem dock

Fix #26041
This commit is contained in:
volzhs 2019-05-09 04:00:40 +09:00
parent 68c3728b47
commit 920403c489

View File

@ -462,6 +462,7 @@ void FileSystemDock::_navigate_to_path(const String &p_path, bool p_select_in_fa
_update_tree(_compute_uncollapsed_paths(), false, p_select_in_favorites);
if (display_mode == DISPLAY_MODE_SPLIT) {
_update_file_list(false);
files->get_v_scroll()->set_value(0);
}
String file_name = p_path.get_file();