Skip to content

Commit 6179688

Browse files
committed
Fix merge issues
1 parent 2351940 commit 6179688

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

Loop/Managers/LoopAppManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class LoopAppManager: NSObject {
198198
analyticsServicesManager: analyticsServicesManager,
199199
bluetoothProvider: bluetoothStateManager,
200200
alertPresenter: self,
201-
closedLoopStatus: closedLoopStatus,
201+
automaticDosingStatus: automaticDosingStatus,
202202
cacheStore: cacheStore,
203203
localCacheDuration: localCacheDuration,
204204
overrideHistory: overrideHistory,

Loop/View Models/VersionUpdateViewModel.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,8 @@ public class VersionUpdateViewModel: ObservableObject {
7474
}
7575

7676
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()
8179
}
8280
}
83-
8481
}

Loop/Views/BolusEntryView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ struct BolusEntryView: View {
6868
if amount == 0 {
6969
newEnteredBolusString = ""
7070
} else {
71-
newEnteredBolusString = Self.doseAmountFormatter.string(from: amount) ?? String(amount)
71+
newEnteredBolusString = viewModel.formatBolusAmount(amount)
7272
}
7373
enteredBolusStringBinding.wrappedValue = newEnteredBolusString
7474
}

LoopCore/NSUserDefaults.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ extension UserDefaults {
2222
case allowSimulators = "com.loopkit.Loop.allowSimulators"
2323
case resetLoop = "com.loopkit.Loop.resetLoop"
2424
case LastMissedMealNotification = "com.loopkit.Loop.lastMissedMealNotification"
25+
case studyProductSelection = "com.loopkit.Loop.studyProductSelection"
2526
}
2627

2728
public static let appGroup = UserDefaults(suiteName: Bundle.main.appGroupSuiteName)

0 commit comments

Comments
 (0)