(iOS) Fixed a build issue

This commit is contained in:
Leon Styhre 2025-02-20 22:38:26 +01:00
parent 1b52f422c7
commit 739f6d3715

View file

@ -2137,6 +2137,7 @@ void GuiMenu::openOtherOptions()
applicationUpdaterFrequency->setCallback(applicationUpdaterFrequencyFunc); applicationUpdaterFrequency->setCallback(applicationUpdaterFrequencyFunc);
#endif #endif
#if !defined(__IOS__)
auto browsingEventsToggleFunc = [customEventScriptsBrowsing]() { auto browsingEventsToggleFunc = [customEventScriptsBrowsing]() {
if (customEventScriptsBrowsing->getEnabled()) { if (customEventScriptsBrowsing->getEnabled()) {
customEventScriptsBrowsing->setEnabled(false); customEventScriptsBrowsing->setEnabled(false);
@ -2155,6 +2156,7 @@ void GuiMenu::openOtherOptions()
}; };
customEventScripts->setCallback(browsingEventsToggleFunc); customEventScripts->setCallback(browsingEventsToggleFunc);
#endif
s->setSize(mSize); s->setSize(mSize);
mWindow->pushGui(s); mWindow->pushGui(s);