mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00
FileManager: Make the tree view follow the path changes correctly
The left-side tree view was not following along when switching paths via the right-side views. Hook this back up.
This commit is contained in:
parent
9273589c5e
commit
fb275c9442
1 changed files with 2 additions and 4 deletions
|
@ -198,10 +198,8 @@ int main(int argc, char** argv)
|
|||
window->set_title(String::format("File Manager: %s", new_path.characters()));
|
||||
location_textbox->set_text(new_path);
|
||||
auto new_index = file_system_model->index(new_path);
|
||||
directory_view->for_each_view_implementation([&](auto& view) {
|
||||
view.selection().set(new_index);
|
||||
});
|
||||
tree_view->scroll_into_view(directory_view->current_view().selection().first(), Orientation::Vertical);
|
||||
tree_view->selection().set(new_index);
|
||||
tree_view->scroll_into_view(new_index, Orientation::Vertical);
|
||||
tree_view->update();
|
||||
|
||||
go_forward_action->set_enabled(directory_view->path_history_position()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue