Skip to content

Commit

Permalink
Mac: Fix TreeGridView.SelectedItemChanged
Browse files Browse the repository at this point in the history
  • Loading branch information
cwensley committed Aug 29, 2023
1 parent 6be061e commit f86a56e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Eto.Mac/Forms/Controls/TreeGridViewHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,14 @@ public override void SelectionDidChange(NSNotification notification)
h.Control.ReloadData(selected, columns);
previouslySelected = selected;
}

// trigger when the selected item changes
var item = h.SelectedItem;
if (!ReferenceEquals(item, lastSelected))
{
h.Callback.OnSelectedItemChanged(h.Widget, EventArgs.Empty);
lastSelected = item;
}
}

public override void ItemDidCollapse(NSNotification notification)
Expand Down

0 comments on commit f86a56e

Please sign in to comment.