Setting search: Don't display "Clear filter" button initially (when there's no filter)

This commit is contained in:
Henrik Rydgård
2025-04-30 11:03:53 +02:00
parent fbb5d649e4
commit 27a38042df
+1
View File
@@ -91,6 +91,7 @@ void TabbedUIDialogScreenWithGameBackground::CreateViews() {
System_PostUIMessage(UIMessage::GAMESETTINGS_SEARCH, "");
return UI::EVENT_DONE;
});
clearSearchChoice_->SetVisibility(searchFilter_.empty() ? UI::V_GONE : UI::V_VISIBLE);
noSearchResults_ = searchSettings->Add(new TextView("", new LinearLayoutParams(Margins(20, 5))));
}, true);