count check

This commit is contained in:
Pfeil, Scott Robert 2020-09-16 18:34:52 -04:00
parent b64c5ad3e3
commit abe08aa269

View File

@ -42,6 +42,7 @@ public extension MVMCoreAlertHandler {
for case let operation as MVMCoreTopAlertOperation in topAlertQueue.operations {
if !operation.isCancelled,
let pages = operation.topAlertObject.json?.optionalArrayForKey("pages") as? [String],
pages.count > 0,
(pageType == nil || !pages.contains(pageType!)) {
if operation.isExecuting {
operation.reAddAfterCancel = operation.topAlertObject.persistent