Explorar el Código

Fix UI update after Temp Target has expired

polscm32 aka Marvout hace 1 año
padre
commit
ca9d4275d0
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

+ 2 - 2
FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

@@ -260,10 +260,10 @@ extension Home {
                 durationString =
                     "\((newDuration * 60).formatted(.number.grouping(.never).rounded().precision(.fractionLength(0)))) s"
             } else {
-                /// Do not show the Override anymore
+                /// Do not show the Temp Target anymore
                 Task {
                     guard let objectID = self.latestTempTarget.first?.objectID else { return }
-                    await state.cancelOverride(withID: objectID)
+                    await state.cancelTempTarget(withID: objectID)
                 }
             }