auto hide recents tab when no recent games exist

This commit is contained in:
Siddharth 2013-10-20 19:44:55 +05:30
parent 808a4cf821
commit 0edfe5744a

View file

@ -511,11 +511,14 @@ void MainScreen::CreateViews() {
m->T("How to get homebrew & demos"), "http://www.ppsspp.org/gethomebrew.html",
new LinearLayoutParams(FILL_PARENT, FILL_PARENT));
scrollRecentGames->Add(tabRecentGames);
scrollAllGames->Add(tabAllGames);
scrollHomebrew->Add(tabHomebrew);
leftColumn->AddTab(m->T("Recent"), scrollRecentGames);
if (g_Config.recentIsos.size() > 0) {
leftColumn->AddTab(m->T("Recent"), scrollRecentGames);
}
leftColumn->AddTab(m->T("Games"), scrollAllGames);
leftColumn->AddTab(m->T("Homebrew & Demos"), scrollHomebrew);