mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix regression in save data manager search
This commit is contained in:
parent
85304d58a8
commit
ae7586e313
3 changed files with 8 additions and 1 deletions
|
@ -635,7 +635,6 @@ void SavedataScreen::CreateSavedataTab(UI::ViewGroup *savedata) {
|
|||
if (!searchFilter_.empty())
|
||||
dataBrowser_->SetSearchFilter(searchFilter_);
|
||||
dataBrowser_->OnChoice.Handle(this, &SavedataScreen::OnSavedataButtonClick);
|
||||
|
||||
}
|
||||
|
||||
void SavedataScreen::CreateSavestateTab(UI::ViewGroup *savestate) {
|
||||
|
@ -716,7 +715,10 @@ void SavedataScreen::dialogFinished(const Screen *dialog, DialogResult result) {
|
|||
|
||||
void SavedataScreen::sendMessage(UIMessage message, const char *value) {
|
||||
UIDialogScreenWithGameBackground::sendMessage(message, value);
|
||||
|
||||
if (message == UIMessage::SAVEDATA_SEARCH) {
|
||||
EnsureTabs();
|
||||
|
||||
searchFilter_ = value;
|
||||
dataBrowser_->SetSearchFilter(searchFilter_);
|
||||
stateBrowser_->SetSearchFilter(searchFilter_);
|
||||
|
|
|
@ -115,6 +115,10 @@ void TabbedUIDialogScreenWithGameBackground::RecreateViews() {
|
|||
UIScreen::RecreateViews();
|
||||
}
|
||||
|
||||
void TabbedUIDialogScreenWithGameBackground::EnsureTabs() {
|
||||
tabHolder_->EnsureAllCreated();
|
||||
}
|
||||
|
||||
void TabbedUIDialogScreenWithGameBackground::ApplySearchFilter() {
|
||||
using namespace UI;
|
||||
auto se = GetI18NCategory(I18NCat::SEARCH);
|
||||
|
|
|
@ -21,6 +21,7 @@ protected:
|
|||
virtual void CreateTabs() = 0;
|
||||
virtual void CreateExtraButtons(UI::LinearLayout *verticalLayout, int margins) {}
|
||||
virtual bool ShowSearchControls() const { return true; }
|
||||
virtual void EnsureTabs();
|
||||
|
||||
void RecreateViews() override;
|
||||
void sendMessage(UIMessage message, const char *value) override;
|
||||
|
|
Loading…
Add table
Reference in a new issue