Another fix for main menu

This commit is contained in:
pelya
2017-03-31 23:11:37 +03:00
parent 6dcd0f280f
commit ce56dd8023

View File

@@ -62,12 +62,13 @@ struct SelectGameWindow : public Window {
virtual void OnInit()
{
bool missing_sprites = _missing_extra_graphics > 0 && !IsReleasedVersion();
#ifdef __ANDROID__
missing_sprites = false;
#endif
this->GetWidget<NWidgetStacked>(WID_SGI_BASESET_SELECTION)->SetDisplayedPlane(missing_sprites ? 0 : SZSP_NONE);
bool missing_lang = _current_language->missing >= _settings_client.gui.missing_strings_threshold && !IsReleasedVersion();
#ifdef __ANDROID__
missing_lang = false;
#endif
this->GetWidget<NWidgetStacked>(WID_SGI_TRANSLATION_SELECTION)->SetDisplayedPlane(missing_lang ? 0 : SZSP_NONE);
}