Cocoa/ListView: fix the issue that multiple selections could not be retained when switching viewStyle

This commit is contained in:
rich2014 2024-07-21 14:57:12 +08:00
parent 7f011e1f63
commit e1be13f4b7

View File

@ -1351,6 +1351,9 @@ begin
if NOT Assigned(lclcb) then
Exit;
if TCocoaListView(lclcb.Owner).initializing then
Exit;
lclcb.selectionIndexSet.removeAllIndexes;
_collectionView.reloadData();
end;