mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 02:55:49 +03:00
LibGUI: Activate GTreeView indexes when double clicking leaf nodes
This seems pretty sensible to me. I'm unsure if we should activate nodes that have children, or just toggle them.
This commit is contained in:
parent
a12c2df43f
commit
c1b4e8aef0
Notes:
sideshowbarker
2024-07-19 10:45:56 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/c1b4e8aef0a
@ -71,6 +71,8 @@ void GTreeView::doubleclick_event(GMouseEvent& event)
|
||||
|
||||
if (model.row_count(index))
|
||||
toggle_index(index);
|
||||
else
|
||||
activate(index);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user