UI: Allow skipping transitions on set current tab.

This commit is contained in:
Unknown W. Brackets committed 2017-12-12 21:34:17 -08:00
1 parent e7c9bb2a17
commit 09bbd58b62
3 files changed
+24 -18

No files matched your search

+5 -5
View File
@@ -799,13 +799,13 @@ void MainScreen::CreateViews() {
tabHomebrew->OnHighlight.Handle(this, &MainScreen::OnGameHighlight);
if (g_Config.recentIsos.size() > 0) {
leftColumn->SetCurrentTab(0);
tabHolder_->SetCurrentTab(0, true);
} else if (g_Config.iMaxRecent > 0) {
leftColumn->SetCurrentTab(1);
tabHolder_->SetCurrentTab(1, true);
}
if (backFromStore_ || showHomebrewTab) {
leftColumn->SetCurrentTab(2);
tabHolder_->SetCurrentTab(2, true);
backFromStore_ = false;
showHomebrewTab = false;
}
@@ -1224,9 +1224,9 @@ void UmdReplaceScreen::CreateViews() {
rightColumnItems->Add(new Choice(mm->T("Game Settings")))->OnClick.Handle(this, &UmdReplaceScreen::OnGameSettings);
if (g_Config.recentIsos.size() > 0) {
leftColumn->SetCurrentTab(0);
leftColumn->SetCurrentTab(0, true);
} else if (g_Config.iMaxRecent > 0) {
leftColumn->SetCurrentTab(1);
leftColumn->SetCurrentTab(1, true);
}
root_ = new LinearLayout(ORIENT_HORIZONTAL);