(Android) Disabled the quit menu

This commit is contained in:
Leon Styhre 2023-12-23 23:28:22 +01:00
parent 193f98cc1e
commit c5caab290e
2 changed files with 3 additions and 3 deletions

View file

@ -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"));

View file

@ -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