Skip to content

Commit

Permalink
hiro:cocoa: actually fix selection refresh of ListView/TableView for …
Browse files Browse the repository at this point in the history
…multiple selected rows
  • Loading branch information
JamesDunne committed Mar 5, 2025
1 parent c66187c commit 27bde11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hiro/cocoa/widget/table-view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@

-(void) tableViewSelectionDidChange:(NSNotification*)notification {
if(tableView->self()->locked()) return;
auto rowIndexes = [content selectedRowIndexes];
for(auto& tableViewItem : tableView->state.items) {
tableViewItem->state.selected = [content isRowSelected:tableViewItem->offset()];
tableViewItem->state.selected = [rowIndexes containsIndex:tableViewItem->offset()];
}
tableView->doChange();
}
Expand Down

0 comments on commit 27bde11

Please sign in to comment.