From 864d88ec8a627e0dbb0e3ba9b373138017308ab3 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 3 Feb 2023 19:50:50 +0100 Subject: [PATCH] Removed an unnecessary reload when switching theme sets. Also removed a leftover debug message. --- es-app/src/guis/GuiMenu.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/es-app/src/guis/GuiMenu.cpp b/es-app/src/guis/GuiMenu.cpp index be5cdbe74..31e963417 100644 --- a/es-app/src/guis/GuiMenu.cpp +++ b/es-app/src/guis/GuiMenu.cpp @@ -145,9 +145,6 @@ void GuiMenu::openUIOptions() // if the user is editing a custom collection when switching theme sets. if (CollectionSystemsManager::getInstance()->isEditing()) CollectionSystemsManager::getInstance()->exitEditMode(); - // TODO: Eliminate this extra reload or only execute it when switching from - // a legacy theme to a non-legacy theme. - ViewController::getInstance()->reloadAll(); s->setNeedsSaving(); s->setNeedsReloading(); s->setNeedsGoToStart(); @@ -408,8 +405,6 @@ void GuiMenu::openUIOptions() ->getChild(themeTransitions->getChildIndex() - 1) ->setOpacity(1.0f); } - - LOG(LogError) << "SELECTABLE ENTRIES: " << themeTransitions->getNumEntries(); } };