diff options
author | volzhs <volzhs@gmail.com> | 2019-05-09 04:00:40 +0900 |
---|---|---|
committer | volzhs <volzhs@gmail.com> | 2019-05-09 04:00:40 +0900 |
commit | 920403c489fe3b0437634538bb4e45d55ac10eab (patch) | |
tree | 38b34b431f7fed18df5e44b0f85cf69911e06aae | |
parent | 68c3728b4759f65f5ebc6d7c5ddf2157700cc1a1 (diff) |
Scroll back to top when changing directory in FileSystem dock
Fix #26041
-rw-r--r-- | editor/filesystem_dock.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index 6248680a52..97ff516055 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -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(); |