1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:58:11 +00:00

Help: Don't expand the whole tree of the selected node's parent

This now expands nodes unnecessarily with nested sections.
This commit is contained in:
kleines Filmröllchen 2022-12-14 22:24:45 +01:00 committed by Andrew Kaster
parent 201c9d7c77
commit 3cecd612ba

View file

@ -250,7 +250,7 @@ void MainWidget::open_url(URL const& url)
GUI::Application::the()->deferred_invoke([&, path = url.path()] {
auto browse_view_index = m_manual_model->index_from_path(path);
if (browse_view_index.has_value()) {
m_browse_view->expand_tree(browse_view_index.value().parent());
m_browse_view->expand_all_parents_of(browse_view_index.value());
auto page_and_section = m_manual_model->page_and_section(browse_view_index.value());
if (!page_and_section.has_value())