Skip to content

Commit 39aa266

Browse files
authored
an update to the pump status highlight or lifecycle progress refreshed display (#207)
1 parent 7c9a832 commit 39aa266

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Loop/View Controllers/StatusTableViewController.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,6 +1533,14 @@ extension StatusTableViewController: PumpManagerStatusObserver {
15331533

15341534
self.basalDeliveryState = status.basalDeliveryState
15351535
self.bolusState = status.bolusState
1536+
1537+
// refresh display if pump status highlight or lifecycle progress have changed
1538+
if status.pumpStatusHighlight != oldStatus.pumpStatusHighlight ||
1539+
status.pumpLifecycleProgress != oldStatus.pumpLifecycleProgress
1540+
{
1541+
refreshContext.update(with: .status)
1542+
self.reloadData(animated: true)
1543+
}
15361544
}
15371545
}
15381546

0 commit comments

Comments
 (0)