Skip to content

Commit

Permalink
[COASTAL-1389] update progress if cancelling bolus fails (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhamming authored Oct 31, 2024
1 parent 3654d9d commit 7119c0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Loop/View Controllers/StatusTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -812,15 +812,16 @@ final class StatusTableViewController: LoopChartsTableViewController {
if oldDose.syncIdentifier != newDose.syncIdentifier {
tableView.reloadRows(at: [statusIndexPath], with: animated ? .fade : .none)
}
case (.cancelingBolus, .bolusing(let oldDose)):
// this occurs when a cancel command fails
tableView.reloadRows(at: [statusIndexPath], with: animated ? .fade : .none)
case (.canceledBolus(let oldDose), .canceledBolus(let newDose)):
if oldDose != newDose {
tableView.reloadRows(at: [statusIndexPath], with: animated ? .fade : .none)
}
// these updates cause flickering and/or confusion.
case (.cancelingBolus, .cancelingBolus):
break
case (.cancelingBolus, .bolusing(_)):
break
case (.canceledBolus(_), .cancelingBolus):
break
case (.canceledBolus(_), .bolusing(_)):
Expand Down

0 comments on commit 7119c0b

Please sign in to comment.