mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Fix hang bug when searching settings in the Developer Tools screen
This commit is contained in:
@@ -115,6 +115,7 @@ void TabbedUIDialogScreenWithGameBackground::RecreateViews() {
|
||||
}
|
||||
|
||||
void TabbedUIDialogScreenWithGameBackground::EnsureTabs() {
|
||||
_assert_(tabHolder_);
|
||||
tabHolder_->EnsureAllCreated();
|
||||
}
|
||||
|
||||
@@ -122,7 +123,7 @@ void TabbedUIDialogScreenWithGameBackground::ApplySearchFilter() {
|
||||
using namespace UI;
|
||||
auto se = GetI18NCategory(I18NCat::SEARCH);
|
||||
|
||||
tabHolder_->EnsureAllCreated();
|
||||
EnsureTabs();
|
||||
|
||||
// Show an indicator that a filter is applied.
|
||||
filterNotice_->SetVisibility(searchFilter_.empty() ? UI::V_GONE : UI::V_VISIBLE);
|
||||
@@ -142,6 +143,8 @@ void TabbedUIDialogScreenWithGameBackground::ApplySearchFilter() {
|
||||
View *v = tabContents->GetViewByIndex(0);
|
||||
if (v->IsViewGroup()) {
|
||||
tabContents = (ViewGroup *)v;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user