1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-13 05:44:11 +02:00

mListView empty check

This commit is contained in:
Brian Fiete 2024-03-26 11:03:40 -04:00
parent 27ee2a10ac
commit af9f6a5cba

View file

@ -3246,12 +3246,15 @@ namespace IDE.ui
bool hasVisibleItem = false; bool hasVisibleItem = false;
bool hasHiddemItems = false; bool hasHiddemItems = false;
for (var item in mListView.GetRoot().mChildItems) if (mListView.GetRoot().GetChildCount() > 0)
{ {
if (item.mSelfHeight > 0) for (var item in mListView.GetRoot().mChildItems)
hasVisibleItem = true; {
else if (item.mSelfHeight > 0)
hasHiddemItems = true; hasVisibleItem = true;
else
hasHiddemItems = true;
}
} }
if ((hasHiddemItems) && (!hasVisibleItem)) if ((hasHiddemItems) && (!hasVisibleItem))