From c843bd76a21fa6e79bee6263e8623ee737a67769 Mon Sep 17 00:00:00 2001 From: relikd Date: Sat, 12 Sep 2020 10:31:13 +0200 Subject: [PATCH] Share notes opt-out, assuming notes are created for upload anyway --- main/Recordings/TVCShareRecording.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/Recordings/TVCShareRecording.swift b/main/Recordings/TVCShareRecording.swift index 9b8a353..56a1be3 100644 --- a/main/Recordings/TVCShareRecording.swift +++ b/main/Recordings/TVCShareRecording.swift @@ -6,7 +6,7 @@ class TVCShareRecording : UITableViewController, UITextViewDelegate, VCEditTextD // vars var record: Recording! - private var shareNotes: Bool = false // opt-in + private var shareNotes: Bool = true // green switch is more present private lazy var hasNotes: Bool = (self.record.notes != nil) private lazy var editedNotes: String = self.record.notes ?? "" private lazy var weekInYear: String = { @@ -152,7 +152,7 @@ class TVCShareRecording : UITableViewController, UITextViewDelegate, VCEditTextD cell = tableView.dequeueReusableCell(withIdentifier: "shareKeyValueCell")! let src = dataSourceKeyValue[indexPath.row] cell.textLabel?.text = src.key - let flag = shareNotes && indexPath.row == 4 + let flag = indexPath.row == 4 && shareNotes && hasNotes cell.detailTextLabel?.text = flag ? editedNotes : src.value case 3: cell = tableView.dequeueReusableCell(withIdentifier: "shareLogCell")!