Scroll back to top when changing directory in FileSystem dock
Fix #26041
This commit is contained in:
parent
68c3728b47
commit
920403c489
@ -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);
|
_update_tree(_compute_uncollapsed_paths(), false, p_select_in_favorites);
|
||||||
if (display_mode == DISPLAY_MODE_SPLIT) {
|
if (display_mode == DISPLAY_MODE_SPLIT) {
|
||||||
_update_file_list(false);
|
_update_file_list(false);
|
||||||
|
files->get_v_scroll()->set_value(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
String file_name = p_path.get_file();
|
String file_name = p_path.get_file();
|
||||||
|
Loading…
Reference in New Issue
Block a user