Open alexguirre opened 1 year ago
Workaround to the bug: Using the Clear()
function to delete item when the MenuItems count is equal to 1
It would look something along the lines of:
if (DeleteLocationMenu.MenuItems.Count == 1)
{
DeleteLocationMenu.Clear();
}
else
{
DeleteLocationMenu.RemoveItemAt(index);
}
Probably the issue is in this line that doesn't check for
Items.Count == 0
: https://github.com/alexguirre/RAGENativeUI/blob/7a9066455a96638a9845bbd87b51467c68d58996/Source/ScrollableListBase.cs#L211