Allow to contribute empty recordings

This commit is contained in:
relikd
2020-09-08 04:28:07 +02:00
parent 39ca9dbdb1
commit 6409e5eaf3
2 changed files with 0 additions and 7 deletions

View File

@@ -5,14 +5,11 @@ class TVCRecordingDetails: UITableViewController, EditActionsRemove {
var noResults: Bool = false
private lazy var isLongRecording: Bool = record.isLongTerm
@IBOutlet private var shareButton: UIBarButtonItem!
private var showRaw: Bool = false
/// Sorted by `ts` in ascending order (oldest first)
private lazy var dataSourceRaw: [DomainTsPair] = {
let list = RecordingsDB.details(record)
noResults = list.count == 0
shareButton.isEnabled = !noResults
return list
}()
/// Sorted by `count` (descending), then alphabetically
@@ -115,7 +112,6 @@ class TVCRecordingDetails: UITableViewController, EditActionsRemove {
}
}
noResults = dataSourceRaw.count == 0
shareButton.isEnabled = !noResults
return true
}