mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
(Android) Disabled the quit menu
This commit is contained in:
parent
193f98cc1e
commit
c5caab290e
|
@ -72,7 +72,7 @@ GuiMenu::GuiMenu()
|
||||||
|
|
||||||
if (!Settings::getInstance()->getBool("ForceKiosk") &&
|
if (!Settings::getInstance()->getBool("ForceKiosk") &&
|
||||||
Settings::getInstance()->getString("UIMode") != "kiosk") {
|
Settings::getInstance()->getString("UIMode") != "kiosk") {
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__) || defined(__ANDROID__)
|
||||||
addEntry("QUIT ES-DE", mMenuColorPrimary, false, [this] { openQuitMenu(); });
|
addEntry("QUIT ES-DE", mMenuColorPrimary, false, [this] { openQuitMenu(); });
|
||||||
#else
|
#else
|
||||||
if (Settings::getInstance()->getBool("ShowQuitMenu"))
|
if (Settings::getInstance()->getBool("ShowQuitMenu"))
|
||||||
|
@ -1669,7 +1669,7 @@ void GuiMenu::openOtherOptions()
|
||||||
|
|
||||||
// macOS requires root privileges to reboot and power off so it doesn't make much
|
// macOS requires root privileges to reboot and power off so it doesn't make much
|
||||||
// sense to enable this setting and menu entry for that operating system.
|
// sense to enable this setting and menu entry for that operating system.
|
||||||
#if !defined(__APPLE__)
|
#if !defined(__APPLE__) && !defined(__ANDROID__)
|
||||||
// Whether to show the quit menu with the options to reboot and shutdown the computer.
|
// Whether to show the quit menu with the options to reboot and shutdown the computer.
|
||||||
auto showQuitMenu = std::make_shared<SwitchComponent>();
|
auto showQuitMenu = std::make_shared<SwitchComponent>();
|
||||||
showQuitMenu->setState(Settings::getInstance()->getBool("ShowQuitMenu"));
|
showQuitMenu->setState(Settings::getInstance()->getBool("ShowQuitMenu"));
|
||||||
|
|
|
@ -300,7 +300,7 @@ void Settings::setDefaults()
|
||||||
mBoolMap["EnableMenuKidMode"] = {false, false};
|
mBoolMap["EnableMenuKidMode"] = {false, false};
|
||||||
// macOS requires root privileges to reboot and power off so it doesn't make much
|
// macOS requires root privileges to reboot and power off so it doesn't make much
|
||||||
// sense to enable this setting and menu entry for that operating system.
|
// sense to enable this setting and menu entry for that operating system.
|
||||||
#if !defined(__APPLE__)
|
#if !defined(__APPLE__) && !defined(__ANDROID__)
|
||||||
mBoolMap["ShowQuitMenu"] = {false, false};
|
mBoolMap["ShowQuitMenu"] = {false, false};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue