From 0edfe5744a79da276e805712b15088952163511f Mon Sep 17 00:00:00 2001 From: Siddharth Date: Sun, 20 Oct 2013 19:44:55 +0530 Subject: [PATCH] auto hide recents tab when no recent games exist --- UI/MainScreen.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index 461901e318..deb27fefa6 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -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);