Tidied up an if statement in GameSelectorComponent.

This commit is contained in:
Leon Styhre 2022-11-05 15:50:03 +01:00
parent dae911262d
commit ad0cfdba8b

View file

@ -29,9 +29,8 @@ public:
~GameSelectorComponent()
{
if (std::find(SystemData::sSystemVector.cbegin(), SystemData::sSystemVector.cend(),
mSystem) != SystemData::sSystemVector.cend())
mSystem->getRootFolder()->setUpdateListCallback(nullptr);
else if (SystemData::sSystemVector.size() != 0 && mSystem->isGroupedCustomCollection())
mSystem) != SystemData::sSystemVector.cend() ||
(SystemData::sSystemVector.size() != 0 && mSystem->isGroupedCustomCollection()))
mSystem->getRootFolder()->setUpdateListCallback(nullptr);
}