From 774d0b04aae27a31a9763e79aa3a61bcbd5b13da Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 31 Oct 2020 09:46:42 +0100 Subject: [PATCH] Disabled the favorite game button shortcut for Kiosk mode. --- es-app/src/views/gamelist/BasicGameListView.cpp | 3 ++- es-app/src/views/gamelist/ISimpleGameListView.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/es-app/src/views/gamelist/BasicGameListView.cpp b/es-app/src/views/gamelist/BasicGameListView.cpp index a5e32003a..f19b0ceb5 100644 --- a/es-app/src/views/gamelist/BasicGameListView.cpp +++ b/es-app/src/views/gamelist/BasicGameListView.cpp @@ -263,7 +263,8 @@ std::vector BasicGameListView::getHelpPrompts() prompts.push_back(HelpPrompt("select", "options")); if (mRoot->getSystem()->isGameSystem()) prompts.push_back(HelpPrompt("x", "random")); - if (mRoot->getSystem()->isGameSystem() && !UIModeController::getInstance()->isUIModeKid()) { + if (mRoot->getSystem()->isGameSystem() && !UIModeController::getInstance()->isUIModeKid() && + !UIModeController::getInstance()->isUIModeKiosk()) { std::string prompt = CollectionSystemManager::get()->getEditingCollection(); prompts.push_back(HelpPrompt("y", prompt)); } diff --git a/es-app/src/views/gamelist/ISimpleGameListView.cpp b/es-app/src/views/gamelist/ISimpleGameListView.cpp index 44876e73d..19505d0d4 100644 --- a/es-app/src/views/gamelist/ISimpleGameListView.cpp +++ b/es-app/src/views/gamelist/ISimpleGameListView.cpp @@ -175,7 +175,8 @@ bool ISimpleGameListView::input(InputConfig* config, Input input) } } else if (config->isMappedTo("y", input) && - !UIModeController::getInstance()->isUIModeKid()) { + !UIModeController::getInstance()->isUIModeKid() && + !UIModeController::getInstance()->isUIModeKiosk()) { if (mRoot->getSystem()->isGameSystem() && getCursor()->getType() != PLACEHOLDER && getCursor()->getParent()->getPath() != "collections") { if (getCursor()->getType() == GAME || getCursor()->getType() == FOLDER)