Set recording time as filter

This commit is contained in:
relikd
2020-09-08 02:51:25 +02:00
parent 3f572eeb15
commit 27ab2a621a
4 changed files with 45 additions and 14 deletions

View File

@@ -125,4 +125,11 @@ class VCDateFilter: UIViewController, UIGestureRecognizerDelegate {
NotifyDateFilterChanged.post()
}
}
static func setFilter(range from: Timestamp?, to: Timestamp?) {
Prefs.DateFilter.Kind = .ABRange
Prefs.DateFilter.RangeA = from
Prefs.DateFilter.RangeB = to
NotifyDateFilterChanged.post()
}
}