mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-16 00:07:52 +08:00
Fix cell view link mismatch
This commit is contained in:
@ -163,10 +163,15 @@ namespace UnityExplorer.UI.IValues
|
||||
|
||||
var entry = cachedEntries[index];
|
||||
|
||||
if (cell.Occupant != null && entry != cell.Occupant)
|
||||
if (entry.CellView != null && entry.CellView != cell)
|
||||
entry.UnlinkFromView();
|
||||
|
||||
if (cell.Occupant != null && cell.Occupant != entry)
|
||||
cell.Occupant.UnlinkFromView();
|
||||
|
||||
entry.SetView(cell);
|
||||
if (entry.CellView != cell)
|
||||
entry.SetView(cell);
|
||||
|
||||
entry.SetDataToCell(cell);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user