revert
This commit is contained in:
parent
7df6882907
commit
67a0ccfbac
@ -71,17 +71,6 @@ public class AlertHandler {
|
|||||||
|
|
||||||
let alertController = createAlertController(with: alertObject.alertModel)
|
let alertController = createAlertController(with: alertObject.alertModel)
|
||||||
let alertOperation = AlertOperation(with: alertController, alertObject: alertObject)
|
let alertOperation = AlertOperation(with: alertController, alertObject: alertObject)
|
||||||
|
|
||||||
// If an existing greedy alert is showing, add it as a dependency.
|
|
||||||
if let greedyAlertOperation = queue.operations.first(where: { operation in
|
|
||||||
guard !operation.isFinished,
|
|
||||||
!operation.isCancelled,
|
|
||||||
let alertOperation = operation as? AlertOperation else { return false }
|
|
||||||
return alertOperation.alertObject.isGreedy
|
|
||||||
}) {
|
|
||||||
alertOperation.addDependency((greedyAlertOperation as! AlertOperation))
|
|
||||||
}
|
|
||||||
|
|
||||||
queue.addOperation(alertOperation)
|
queue.addOperation(alertOperation)
|
||||||
return alertController
|
return alertController
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user