mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Fixed a semi-cosmetic issue when finish editing custom collections from the main menu.
This commit is contained in:
parent
3bbdc259e0
commit
70eca0fd79
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue