mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-20 06:36:16 +00:00
LibGUI+FileManager: Add GAbstractView::on_selection_change hook
This hook will be called whenever the view's selection changes somehow. Use this in the FileManager to keep the left and right views in sync.
This commit is contained in:
@@ -100,5 +100,8 @@ void GAbstractView::activate(const GModelIndex& index)
|
||||
|
||||
void GAbstractView::notify_selection_changed(Badge<GModelSelection>)
|
||||
{
|
||||
did_update_selection();
|
||||
if (on_selection_change)
|
||||
on_selection_change();
|
||||
update();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user