(macOS) Fixed an error log entry about a nonexistent ShowQuitMenu setting when opening the main menu

This commit is contained in:
Leon Styhre 2023-03-12 12:05:31 +01:00
parent 60c172b2d8
commit 60b958665f

View file

@ -66,10 +66,14 @@ GuiMenu::GuiMenu()
if (!Settings::getInstance()->getBool("ForceKiosk") &&
Settings::getInstance()->getString("UIMode") != "kiosk") {
#if defined(__APPLE__)
addEntry("QUIT EMULATIONSTATION", 0x777777FF, false, [this] { openQuitMenu(); });
#else
if (Settings::getInstance()->getBool("ShowQuitMenu"))
addEntry("QUIT", 0x777777FF, true, [this] { openQuitMenu(); });
else
addEntry("QUIT EMULATIONSTATION", 0x777777FF, false, [this] { openQuitMenu(); });
#endif
}
addChild(&mMenu);