Fixed an issue on Android and macOS where attempting to access a non-existent setting

This commit is contained in:
Leon Styhre 2024-01-06 12:57:00 +01:00
parent c2201da47a
commit 2c850ba325

View file

@ -1832,7 +1832,11 @@ void GuiMenu::openUtilities()
void GuiMenu::openQuitMenu() void GuiMenu::openQuitMenu()
{ {
#if defined(__APPLE__) || defined(__ANDROID__)
if (true) {
#else
if (!Settings::getInstance()->getBool("ShowQuitMenu")) { if (!Settings::getInstance()->getBool("ShowQuitMenu")) {
#endif
mWindow->pushGui(new GuiMsgBox( mWindow->pushGui(new GuiMsgBox(
this->getHelpStyle(), "REALLY QUIT?", "YES", this->getHelpStyle(), "REALLY QUIT?", "YES",
[this] { [this] {