Cleanup scroll pool, fix some minor things

This commit is contained in:
Sinai committed 2021-04-22 22:56:46 +10:00
1 parent 012994ed02
commit feb86a77fd
4 files changed
+12 -17

No files matched your search

+1 -2
View File
@@ -28,7 +28,6 @@ namespace UnityExplorer.UI.Widgets
{
this.sisterCache = sisterCache;
ExplorerCore.Log("Creating backup height cache, this count: " + scrollPool.DataSource.ItemCount);
TakeFromSister(scrollPool.DataSource.ItemCount);
}
@@ -79,7 +78,7 @@ namespace UnityExplorer.UI.Widgets
public void TakeFromSister(int count)
{
for (int i = 0, i < count; i++)
for (int i = 0; i < count; i++)
Add(sisterCache[ScrollPool.DataSource.GetRealIndexOfTempIndex(i)]);
}