Fix bug where script policy controls get wonky when there are many on screen
This commit is contained in:
@@ -166,6 +166,7 @@ class ScriptPolicyViewController: UIViewController, UICollectionViewDelegate
|
||||
listCell.policyControl.policyStatus = .blocked
|
||||
}
|
||||
|
||||
listCell.policyControl.removeTarget(nil, action: nil, for: .valueChanged)
|
||||
listCell.policyControl.addAction(UIAction(handler: { _ in
|
||||
let allowed: Bool = listCell.policyControl.policyStatus == .allowed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user