From b3d76c31aa493a5b275d3a61f0ec7190e5e28cfb Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 29 Jul 2023 20:58:51 +0200 Subject: [PATCH] Some improvements to GuiOrphanedDataCleanup --- es-app/src/guis/GuiOrphanedDataCleanup.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/es-app/src/guis/GuiOrphanedDataCleanup.cpp b/es-app/src/guis/GuiOrphanedDataCleanup.cpp index 77ae91576..831a8a488 100644 --- a/es-app/src/guis/GuiOrphanedDataCleanup.cpp +++ b/es-app/src/guis/GuiOrphanedDataCleanup.cpp @@ -99,7 +99,7 @@ GuiOrphanedDataCleanup::GuiOrphanedDataCleanup(std::function reloadCallb mGrid.setEntry(mEntryCount, glm::ivec2 {2, 6}, false, true, glm::ivec2 {1, 1}); mSystemProcessingHeader = std::make_shared( - "PROCESSING SYSTEM:", Font::get(FONT_SIZE_SMALL), mMenuColorPrimary, ALIGN_LEFT); + "LAST PROCESSED SYSTEM:", Font::get(FONT_SIZE_SMALL), mMenuColorPrimary, ALIGN_LEFT); mGrid.setEntry(mSystemProcessingHeader, glm::ivec2 {1, 7}, false, true, glm::ivec2 {1, 1}); mSystemProcessing = std::make_shared("", Font::get(FONT_SIZE_SMALL), @@ -189,7 +189,10 @@ GuiOrphanedDataCleanup::GuiOrphanedDataCleanup(std::function reloadCallb return; } if (!mHasCustomCollections) { + mStatus->setValue("COLLECTIONS CLEANUP FAILED"); mError->setValue("THERE ARE NO ENABLED CUSTOM COLLECTIONS"); + mEntryCount->setValue("0"); + mSystemProcessing->setValue(""); return; } if (mThread) { @@ -291,7 +294,7 @@ void GuiOrphanedDataCleanup::cleanupMediaFiles() ++systemCounter; - const std::string currentSystem {system->getName() + " (" + system->getFullName() + ")"}; + const std::string currentSystem {system->getFullName() + " (" + system->getName() + ")"}; LOG(LogInfo) << "Processing system \"" << currentSystem << "\""; { @@ -425,7 +428,7 @@ void GuiOrphanedDataCleanup::cleanupGamelists() ++systemCounter; - const std::string currentSystem {system->getName() + " (" + system->getFullName() + ")"}; + const std::string currentSystem {system->getFullName() + " (" + system->getName() + ")"}; LOG(LogInfo) << "Processing system \"" << currentSystem << "\""; { @@ -924,7 +927,6 @@ void GuiOrphanedDataCleanup::update(int deltaTime) } message.append("CLEANUP"); mStatus->setValue(message); - mSystemProcessing->setValue(""); mCompleted = false; } else if (mFailed) {