mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45: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/GuiMsgBox.h"
|
||||||
#include "guis/GuiSettings.h"
|
#include "guis/GuiSettings.h"
|
||||||
#include "guis/GuiTextEditPopup.h"
|
#include "guis/GuiTextEditPopup.h"
|
||||||
|
#include "views/gamelist/IGameListView.h"
|
||||||
#include "views/ViewController.h"
|
#include "views/ViewController.h"
|
||||||
#include "CollectionSystemsManager.h"
|
#include "CollectionSystemsManager.h"
|
||||||
|
#include "SystemData.h"
|
||||||
|
|
||||||
GuiCollectionSystemsOptions::GuiCollectionSystemsOptions(
|
GuiCollectionSystemsOptions::GuiCollectionSystemsOptions(
|
||||||
Window* window,
|
Window* window,
|
||||||
|
@ -32,6 +34,12 @@ GuiCollectionSystemsOptions::GuiCollectionSystemsOptions(
|
||||||
"' COLLECTION", Font::get(FONT_SIZE_MEDIUM), 0x777777FF), true);
|
"' COLLECTION", Font::get(FONT_SIZE_MEDIUM), 0x777777FF), true);
|
||||||
row.makeAcceptInputHandler([this] {
|
row.makeAcceptInputHandler([this] {
|
||||||
CollectionSystemsManager::get()->exitEditMode();
|
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;
|
delete this;
|
||||||
});
|
});
|
||||||
addRow(row);
|
addRow(row);
|
||||||
|
|
Loading…
Reference in a new issue