Skip to content

Commit

Permalink
force treatments sync re-enabled, was commented out temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanDegraeve committed Jan 12, 2023
1 parent 6f9a7b1 commit 4be086a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1992,9 +1992,8 @@ final class RootViewController: UIViewController {
/// - forceReset : if true, then force the update to be done even if the main chart is panned back in time (used for the double tap gesture)
@objc private func updateLabelsAndChart(overrideApplicationState: Bool = false, forceReset: Bool = false) {

// TODO: Figure out why this causes a bad access exception. Keep it commented out until then
// force treatments sync
// UserDefaults.standard.nightScoutSyncTreatmentsRequired = true
UserDefaults.standard.nightScoutSyncTreatmentsRequired = true

// if glucoseChartManager not nil, then check if panned backward and if so then don't update the chart
if let glucoseChartManager = glucoseChartManager {
Expand Down

0 comments on commit 4be086a

Please sign in to comment.