From f3321009fee749eec12b44508c57e433a6231afb Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 5 Apr 2021 12:44:58 +0200 Subject: [PATCH] Added a notification if attempting to add a placeholder to a custom collection. --- es-app/src/views/gamelist/ISimpleGameListView.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/es-app/src/views/gamelist/ISimpleGameListView.cpp b/es-app/src/views/gamelist/ISimpleGameListView.cpp index cc920ed49..0bedd5521 100644 --- a/es-app/src/views/gamelist/ISimpleGameListView.cpp +++ b/es-app/src/views/gamelist/ISimpleGameListView.cpp @@ -247,6 +247,14 @@ bool ISimpleGameListView::input(InputConfig* config, Input input) "CAN'T ADD CUSTOM COLLECTIONS TO CUSTOM COLLECTIONS", 4000); mWindow->setInfoPopup(s); } + // Notify the user if attempting to add a placeholder to a custom collection. + if (CollectionSystemsManager::get()->isEditing() && + mRoot->getSystem()->isGameSystem() && getCursor()->getType() == PLACEHOLDER) { + GuiInfoPopup* s; + s = new GuiInfoPopup(mWindow, + "CAN'T ADD PLACEHOLDERS TO CUSTOM COLLECTIONS", 4000); + mWindow->setInfoPopup(s); + } else if (mRoot->getSystem()->isGameSystem() && getCursor()->getType() != PLACEHOLDER && getCursor()->getParent()->getPath() != "collections") { if (getCursor()->getType() == GAME || getCursor()->getType() == FOLDER)