From 70eca0fd792e62efb73f1864932aeb3e98019c13 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 31 Dec 2020 16:40:08 +0100 Subject: [PATCH] Fixed a semi-cosmetic issue when finish editing custom collections from the main menu. --- es-app/src/guis/GuiCollectionSystemsOptions.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/es-app/src/guis/GuiCollectionSystemsOptions.cpp b/es-app/src/guis/GuiCollectionSystemsOptions.cpp index 8814a789f..ffac4c42d 100644 --- a/es-app/src/guis/GuiCollectionSystemsOptions.cpp +++ b/es-app/src/guis/GuiCollectionSystemsOptions.cpp @@ -14,8 +14,10 @@ #include "guis/GuiMsgBox.h" #include "guis/GuiSettings.h" #include "guis/GuiTextEditPopup.h" +#include "views/gamelist/IGameListView.h" #include "views/ViewController.h" #include "CollectionSystemsManager.h" +#include "SystemData.h" GuiCollectionSystemsOptions::GuiCollectionSystemsOptions( Window* window, @@ -32,6 +34,12 @@ GuiCollectionSystemsOptions::GuiCollectionSystemsOptions( "' COLLECTION", Font::get(FONT_SIZE_MEDIUM), 0x777777FF), true); row.makeAcceptInputHandler([this] { CollectionSystemsManager::get()->exitEditMode(); + for (auto it = SystemData::sSystemVector.begin(); + it != SystemData::sSystemVector.end(); it++) { + ViewController::get()->getGameListView((*it))->onFileChanged( + ViewController::get()->getGameListView((*it))->getCursor(), false); + } + mWindow->invalidateCachedBackground(); delete this; }); addRow(row);