From f55f3ea32d1b16ea7a8fc880d7bfe179c1942229 Mon Sep 17 00:00:00 2001 From: relikd Date: Sat, 12 Sep 2020 10:42:37 +0200 Subject: [PATCH] Disable copy menu on meta cells in 5 min context --- main/Requests/TVCOccurrenceContext.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/Requests/TVCOccurrenceContext.swift b/main/Requests/TVCOccurrenceContext.swift index 4c4e914..3f0442f 100644 --- a/main/Requests/TVCOccurrenceContext.swift +++ b/main/Requests/TVCOccurrenceContext.swift @@ -70,7 +70,7 @@ class TVCOccurrenceContext: UITableViewController { private var copyDomain: String? = nil override func tableView(_ tableView: UITableView, willSelectRowAt indexPath: IndexPath) -> IndexPath? { - if cellMenu.start(tableView, indexPath) { + if !firstOrLast(indexPath.row), cellMenu.start(tableView, indexPath) { copyDomain = cellMenu.getSelected(dataSource)?.domain self.becomeFirstResponder() }