Skip to content

Commit d9aa2fc

Browse files
committed
Merge branch 'master' of github.com:Leanplum/Leanplum-iOS-SDK into release/5.0.0
- Perform actions when queue is enabled
2 parents d0244c4 + ddbc900 commit d9aa2fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

LeanplumSDK/LeanplumSDK/ClassesSwift/Actions/ActionManager.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ import Foundation
2929
/// When disabled, it stops executing actions and new actions will not be added to the queue.
3030
public var isEnabled: Bool = true {
3131
didSet {
32+
if isEnabled && !oldValue {
33+
performAvailableActions()
34+
}
3235
Log.info("[ActionManager] isEnabled: \(isEnabled)")
3336
}
3437
}

0 commit comments

Comments
 (0)