Skip to content

Commit dac8162

Browse files
author
Darin Krauss
authored
[LOOP-3902] Correctly enable toolbar icons after pump onboarded (#486)
- https://tidepool.atlassian.net/browse/LOOP-3902 - Update toolbar icons when onboarding suspended status changes
1 parent b3d8850 commit dac8162

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Loop/Managers/OnboardingManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class OnboardingManager {
1919
private weak var windowProvider: WindowProvider?
2020
private let userDefaults: UserDefaults
2121

22-
private var isSuspended: Bool {
22+
@Published public private(set) var isSuspended: Bool {
2323
didSet { userDefaults.onboardingManagerIsSuspended = isSuspended }
2424
}
2525

Loop/View Controllers/StatusTableViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ final class StatusTableViewController: LoopChartsTableViewController {
155155
updateBolusProgress()
156156

157157
onboardingManager.$isComplete
158+
.merge(with: onboardingManager.$isSuspended)
158159
.receive(on: RunLoop.main)
159160
.sink { [weak self] _ in
160161
self?.reloadData()

0 commit comments

Comments
 (0)