clear filters on searchbar enter

This commit is contained in:
Tyfon
2024-07-18 15:07:53 -07:00
parent b748eb96ba
commit fea43bcada
2 changed files with 45 additions and 1 deletions

View File

@@ -117,6 +117,7 @@ internal class Settings
public static ConfigEntry<bool> EnableSlotSearch { get; set; }
public static ConfigEntry<bool> ShowRequiredQuest { get; set; }
public static ConfigEntry<bool> AutoExpandCategories { get; set; }
public static ConfigEntry<bool> ClearFiltersOnSearch { get; set; }
public static ConfigEntry<bool> KeepAddOfferOpen { get; set; }
public static ConfigEntry<KeyboardShortcut> PurchaseAllKeybind { get; set; }
public static ConfigEntry<bool> KeepAddOfferOpenIgnoreMaxOffers { get; set; } // Advanced
@@ -663,6 +664,15 @@ internal class Settings
null,
new ConfigurationManagerAttributes { })));
configEntries.Add(ClearFiltersOnSearch = config.Bind(
FleaMarketSection,
"Clear Filters on Search",
true,
new ConfigDescription(
"Pressing Enter after typing in the flea search bar will clear non-default filters",
null,
new ConfigurationManagerAttributes { })));
configEntries.Add(ShowRequiredQuest = config.Bind(
FleaMarketSection,
"Show Required Quest for Locked Offers",