mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Merge pull request #522 from cmitu/fix-uimodes-in
Fix Kiosk mode filters applying also to Kid mode
This commit is contained in:
commit
f899920598
|
|
@ -248,7 +248,7 @@ void FileFilterIndex::resetFilters()
|
||||||
void FileFilterIndex::setUIModeFilters()
|
void FileFilterIndex::setUIModeFilters()
|
||||||
{
|
{
|
||||||
if(!Settings::getInstance()->getBool("ForceDisableFilters")){
|
if(!Settings::getInstance()->getBool("ForceDisableFilters")){
|
||||||
if (!UIModeController::getInstance()->isUIModeFull())
|
if (UIModeController::getInstance()->isUIModeKiosk())
|
||||||
{
|
{
|
||||||
filterByHidden = true;
|
filterByHidden = true;
|
||||||
std::vector<std::string> val = { "FALSE" };
|
std::vector<std::string> val = { "FALSE" };
|
||||||
|
|
|
||||||
|
|
@ -94,6 +94,12 @@ bool UIModeController::isUIModeKid()
|
||||||
((mCurrentUIMode == "Kid") && !Settings::getInstance()->getBool("ForceKiosk")));
|
((mCurrentUIMode == "Kid") && !Settings::getInstance()->getBool("ForceKiosk")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool UIModeController::isUIModeKiosk()
|
||||||
|
{
|
||||||
|
return (Settings::getInstance()->getBool("ForceKiosk") ||
|
||||||
|
((mCurrentUIMode == "Kiosk") && !Settings::getInstance()->getBool("ForceKid")));
|
||||||
|
}
|
||||||
|
|
||||||
std::string UIModeController::getFormattedPassKeyStr()
|
std::string UIModeController::getFormattedPassKeyStr()
|
||||||
{
|
{
|
||||||
// supported sequence-inputs: u (up), d (down), l (left), r (right), a, b, x, y
|
// supported sequence-inputs: u (up), d (down), l (left), r (right), a, b, x, y
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ public:
|
||||||
|
|
||||||
bool isUIModeFull();
|
bool isUIModeFull();
|
||||||
bool isUIModeKid();
|
bool isUIModeKid();
|
||||||
|
bool isUIModeKiosk();
|
||||||
inline std::vector<std::string> getUIModes() { return mUIModes; };
|
inline std::vector<std::string> getUIModes() { return mUIModes; };
|
||||||
private:
|
private:
|
||||||
UIModeController();
|
UIModeController();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue