Prime history with default filter

This commit is contained in:
Tyfon
2024-06-06 13:10:02 -07:00
parent 45d69b370c
commit 2c285ff04e

View File

@@ -76,7 +76,14 @@ namespace UIFixes
layoutElement.preferredWidth = -1;
// Prime the first filter
if (!History.Any())
{
History.Push(new HistoryEntry() { filterRule = ragfair.method_3(EViewListType.AllOffers) }); // Player's saved default rule
}
// Load what they're searching now, which may or may not be the same as the default
OnFilterRuleChanged();
ragfair.OnFilterRuleChanged += OnFilterRuleChanged;
if (History.Count < 2)