mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-04 08:01:51 +00:00
GTreeView: On model selection change, open the selected index.
This commit is contained in:
parent
2c6a597d77
commit
a535c7453f
Notes:
sideshowbarker
2024-07-19 14:53:43 +09:00
Author: https://github.com/awesomekling
Commit: a535c7453f
1 changed files with 1 additions and 0 deletions
|
@ -293,6 +293,7 @@ void GTreeView::did_update_selection()
|
|||
auto index = model.selected_index();
|
||||
if (!index.is_valid())
|
||||
return;
|
||||
ensure_metadata_for_index(index).open = true;
|
||||
auto parent = index.parent();
|
||||
while (parent.is_valid()) {
|
||||
ensure_metadata_for_index(parent).open = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue