From: Jason A. Donenfeld Date: Thu, 23 Sep 2021 04:08:20 +0000 (+0200) Subject: UI: iOS: remove list pinking when no config X-Git-Tag: 1.0.15-26~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=abf506c1fea651b0f7a8dba1573a9806b553c861;p=thirdparty%2Fwireguard-apple.git UI: iOS: remove list pinking when no config This reverts commit 86afd1a46a83038a787176272a7c486b7269e1a3. Signed-off-by: Jason A. Donenfeld --- diff --git a/Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift b/Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift index dcca9ec..4dbe97c 100644 --- a/Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift +++ b/Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift @@ -159,10 +159,6 @@ class TunnelListCell: UITableViewCell { statusSwitch.isUserInteractionEnabled = (status == .inactive || status == .active) } - if tunnel.tunnelConfiguration == nil { - statusSwitch.isUserInteractionEnabled = false - backgroundColor = .systemPink - } } private func reset(animated: Bool) { diff --git a/Sources/WireGuardApp/UI/iOS/ViewController/TunnelsListTableViewController.swift b/Sources/WireGuardApp/UI/iOS/ViewController/TunnelsListTableViewController.swift index 29f93ce..85e64ce 100644 --- a/Sources/WireGuardApp/UI/iOS/ViewController/TunnelsListTableViewController.swift +++ b/Sources/WireGuardApp/UI/iOS/ViewController/TunnelsListTableViewController.swift @@ -344,7 +344,6 @@ extension TunnelsListTableViewController: UITableViewDelegate { } guard let tunnelsManager = tunnelsManager else { return } let tunnel = tunnelsManager.tunnel(at: indexPath.row) - guard tunnel.tunnelConfiguration != nil else { return } showTunnelDetail(for: tunnel, animated: true) }