App was using the altname if present, but should be using section name throughout. This behavior was used because often the altnames are the more colloquially used names. However, we want to match the website behavior.
Use enum for FilterType:
I also added isRegion and isDistance to the filters class for convenience. Essentially, the interface is the same, but the handling in defaults isn't repetitive.
Set default filter in DefaultsManager
I added the default values to DefaultsManager
However, I ended up keeping the ability to set filters back to defaults, because it's more explicit than depending on the state of the defaults manager.
Fixes #245, #244, #196.
Fixes section name:
altname
if present, but should be using section name throughout. This behavior was used because often the altnames are the more colloquially used names. However, we want to match the website behavior.Use enum for FilterType:
isRegion
andisDistance
to the filters class for convenience. Essentially, the interface is the same, but the handling in defaults isn't repetitive.Set default filter in DefaultsManager