mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 03:35:07 +00:00
FileManager: Make the tree view follow the directory view navigations.
This commit is contained in:
parent
f10e0d0546
commit
2c6a597d77
10 changed files with 72 additions and 3 deletions
|
@ -41,6 +41,9 @@ void GModel::set_selected_index(const GModelIndex& index)
|
|||
m_selected_index = index;
|
||||
if (on_selection_changed)
|
||||
on_selection_changed(index);
|
||||
for_each_view([] (auto& view) {
|
||||
view.did_update_selection();
|
||||
});
|
||||
if (m_activates_on_selection && is_valid(index))
|
||||
activate(index);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue