Hide quit button in main menu for iOS

This commit is contained in:
Benau 2019-07-26 15:43:09 +08:00
parent 05684c92dc
commit 504e2b8cbf

View File

@ -105,7 +105,12 @@ void MainMenuScreen::loadedFromFile()
void MainMenuScreen::beforeAddingWidget()
{
#ifdef IOS_STK
// iOS app doesn't like quit button in UI
Widget* w = getWidget("quit");
if (w)
w->setVisible(false);
#endif
}
// ----------------------------------------------------------------------------
@ -167,6 +172,12 @@ void MainMenuScreen::init()
IconButtonWidget::ICON_PATH_TYPE_RELATIVE);
#endif
#ifdef IOS_STK
// iOS app doesn't like quit button in UI
Widget* quit = getWidget("quit");
if (quit)
quit->setVisible(false);
#endif
} // init
// ----------------------------------------------------------------------------