Kaynağa Gözat

25. Sync duration. Missing commit

(cherry picked from commit 6d0226b87013a825cd2e6d4c1ed783c26adf0565)
Jon Mårtensson 3 yıl önce
ebeveyn
işleme
56d91f7756

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

@@ -244,7 +244,7 @@ extension Home {
                 (newDuration.formatted(.number.grouping(.never).rounded().precision(.fractionLength(0))) + " min") :
                 (
                     newDuration > 0 ? (
-                        newDuration.formatted(.number.grouping(.never).rounded().precision(.fractionLength(1))) + "min"
+                        (newDuration * 60).formatted(.number.grouping(.never).rounded().precision(.fractionLength(0))) + " s"
                     ) :
                         ""
                 )
@@ -455,7 +455,7 @@ extension Home {
                 display.toggle()
             }
 
-            if fetchedPercent.first?.enabled ?? false, !(fetchedPercent.first?.isPreset ?? false) {
+            if fetchedPercent.first?.enabled ?? false, !(fetchedPercent.first?.isPreset ?? false), display {
                 profileString = NSLocalizedString("Custom Profile", comment: "Custom but unsaved Profile")
             } else if !(fetchedPercent.first?.enabled ?? false) || !display {
                 profileString = NSLocalizedString("Normal Profile", comment: "Your normal Profile. Use a short string")