Prime history with default filter
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user