Skip to content

Commit 0c25618

Browse files
committed
Revert "revert notification names"
This reverts commit ad62a80.
1 parent f4b6aaa commit 0c25618

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Loop/Managers/LoopDataManager.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ final class LoopDataManager {
9595
// Observe changes
9696
notificationObservers = [
9797
NotificationCenter.default.addObserver(
98-
forName: .CarbEntriesDidUpdate,
98+
forName: CarbStore.carbEntriesDidUpdate,
9999
object: carbStore,
100100
queue: nil
101101
) { (note) -> Void in
@@ -108,7 +108,7 @@ final class LoopDataManager {
108108
}
109109
},
110110
NotificationCenter.default.addObserver(
111-
forName: .GlucoseSamplesDidChange,
111+
forName: GlucoseStore.glucoseSamplesDidChange,
112112
object: glucoseStore,
113113
queue: nil
114114
) { (note) in

WatchApp Extension/Controllers/CarbEntryListController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class CarbEntryListController: WKInterfaceController, IdentifiableClass {
4646

4747
override func willActivate() {
4848
observers = [
49-
NotificationCenter.default.addObserver(forName: .CarbEntriesDidUpdate, object: loopManager.carbStore, queue: nil) { [weak self] (note) in
49+
NotificationCenter.default.addObserver(forName: CarbStore.carbEntriesDidUpdate, object: loopManager.carbStore, queue: nil) { [weak self] (note) in
5050
self?.log.default("Received CarbEntriesDidUpdate notification: %{public}@. Updating list", String(describing: note.userInfo ?? [:]))
5151

5252
DispatchQueue.main.async {

WatchApp Extension/Controllers/ChartHUDController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ final class ChartHUDController: HUDInterfaceController, WKCrownDelegate {
118118
super.willActivate()
119119

120120
observers = [
121-
NotificationCenter.default.addObserver(forName: .GlucoseSamplesDidChange, object: loopManager.glucoseStore, queue: nil) { [weak self] (note) in
121+
NotificationCenter.default.addObserver(forName: GlucoseStore.glucoseSamplesDidChange, object: loopManager.glucoseStore, queue: nil) { [weak self] (note) in
122122
self?.log.default("Received GlucoseSamplesDidChange notification: %{public}@. Updating chart", String(describing: note.userInfo ?? [:]))
123123

124124
DispatchQueue.main.async {

0 commit comments

Comments
 (0)