From 60b958665f113f34e4f1ff9afd89b494fdbfb08d Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 12 Mar 2023 12:05:31 +0100 Subject: [PATCH] (macOS) Fixed an error log entry about a nonexistent ShowQuitMenu setting when opening the main menu --- es-app/src/guis/GuiMenu.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/es-app/src/guis/GuiMenu.cpp b/es-app/src/guis/GuiMenu.cpp index d0f12547f..ef9533d10 100644 --- a/es-app/src/guis/GuiMenu.cpp +++ b/es-app/src/guis/GuiMenu.cpp @@ -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);