Disable block & ignore filter during recording

This commit is contained in:
relikd
2020-08-29 18:36:41 +02:00
parent 8fcb5ad874
commit 7dbf21d564
5 changed files with 36 additions and 5 deletions

View File

@@ -64,8 +64,11 @@ class VCRecordings: UIViewController, UINavigationControllerDelegate {
return
}
currentRecording = RecordingsDB.startNew()
QLog.Debug("start recording #\(currentRecording!.id)")
startTimer(animate: true)
notifyVPN(setRecording: true)
} else {
notifyVPN(setRecording: false)
stopTimer(animate: true)
RecordingsDB.stop(&currentRecording!)
let editVC = (children.first as! TVCPreviousRecords)
@@ -74,6 +77,11 @@ class VCRecordings: UIViewController, UINavigationControllerDelegate {
}
}
private func notifyVPN(setRecording state: Bool) {
PrefsShared.CurrentlyRecording = state
GlassVPN.send(.isRecording(state))
}
private func startTimer(animate: Bool) {
guard let r = currentRecording, r.stop == nil else {
return