Rename Pref -> Prefs

This commit is contained in:
relikd
2020-06-28 14:33:36 +02:00
parent 80afa6aff1
commit f7644e6048
9 changed files with 54 additions and 54 deletions

View File

@@ -38,12 +38,12 @@ class TVCDomains: UITableViewController, UISearchBarDelegate, GroupedDomainDataS
}
@objc private func didChangeDateFilter() {
switch Pref.DateFilter.Kind {
switch Prefs.DateFilter.Kind {
case .ABRange: // read start/end time
self.filterButtonDetail.title = "AB"
self.filterButton.image = UIImage(named: "filter-filled")
case .LastXMin: // most recent
let lastXMin = Pref.DateFilter.LastXMin
let lastXMin = Prefs.DateFilter.LastXMin
if lastXMin == 0 { fallthrough }
self.filterButtonDetail.title = TimeFormat(.abbreviated).from(minutes: lastXMin)
self.filterButton.image = UIImage(named: "filter-filled")