File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ class LoopAppManager: NSObject {
198
198
analyticsServicesManager: analyticsServicesManager,
199
199
bluetoothProvider: bluetoothStateManager,
200
200
alertPresenter: self ,
201
- closedLoopStatus : closedLoopStatus ,
201
+ automaticDosingStatus : automaticDosingStatus ,
202
202
cacheStore: cacheStore,
203
203
localCacheDuration: localCacheDuration,
204
204
overrideHistory: overrideHistory,
Original file line number Diff line number Diff line change @@ -74,11 +74,8 @@ public class VersionUpdateViewModel: ObservableObject {
74
74
}
75
75
76
76
public func update( ) {
77
- supportManager? . checkVersion { [ weak self] versionUpdate in
78
- DispatchQueue . main. async {
79
- self ? . versionUpdate = versionUpdate
80
- }
77
+ Task { @MainActor in
78
+ versionUpdate = await supportManager? . checkVersion ( )
81
79
}
82
80
}
83
-
84
81
}
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ struct BolusEntryView: View {
68
68
if amount == 0 {
69
69
newEnteredBolusString = " "
70
70
} else {
71
- newEnteredBolusString = Self . doseAmountFormatter . string ( from : amount ) ?? String ( amount)
71
+ newEnteredBolusString = viewModel . formatBolusAmount ( amount)
72
72
}
73
73
enteredBolusStringBinding. wrappedValue = newEnteredBolusString
74
74
}
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ extension UserDefaults {
22
22
case allowSimulators = " com.loopkit.Loop.allowSimulators "
23
23
case resetLoop = " com.loopkit.Loop.resetLoop "
24
24
case LastMissedMealNotification = " com.loopkit.Loop.lastMissedMealNotification "
25
+ case studyProductSelection = " com.loopkit.Loop.studyProductSelection "
25
26
}
26
27
27
28
public static let appGroup = UserDefaults ( suiteName: Bundle . main. appGroupSuiteName)
You can’t perform that action at this time.
0 commit comments