Skip to content

Commit

Permalink
[LOOP-3902] Correctly enable toolbar icons after pump onboarded (#486)
Browse files Browse the repository at this point in the history
- https://tidepool.atlassian.net/browse/LOOP-3902
- Update toolbar icons when onboarding suspended status changes
  • Loading branch information
Darin Krauss authored Jan 3, 2022
1 parent b3d8850 commit dac8162
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Loop/Managers/OnboardingManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class OnboardingManager {
private weak var windowProvider: WindowProvider?
private let userDefaults: UserDefaults

private var isSuspended: Bool {
@Published public private(set) var isSuspended: Bool {
didSet { userDefaults.onboardingManagerIsSuspended = isSuspended }
}

Expand Down
1 change: 1 addition & 0 deletions Loop/View Controllers/StatusTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ final class StatusTableViewController: LoopChartsTableViewController {
updateBolusProgress()

onboardingManager.$isComplete
.merge(with: onboardingManager.$isSuspended)
.receive(on: RunLoop.main)
.sink { [weak self] _ in
self?.reloadData()
Expand Down

0 comments on commit dac8162

Please sign in to comment.