From ad0cfdba8b876249cf4c1e7429b045d393288cc6 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 5 Nov 2022 15:50:03 +0100 Subject: [PATCH] Tidied up an if statement in GameSelectorComponent. --- es-core/src/components/GameSelectorComponent.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/es-core/src/components/GameSelectorComponent.h b/es-core/src/components/GameSelectorComponent.h index 4f16d7b09..b810be411 100644 --- a/es-core/src/components/GameSelectorComponent.h +++ b/es-core/src/components/GameSelectorComponent.h @@ -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); }