Skip to content

Commit

Permalink
25. Sync duration. Missing commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon-b-m committed May 26, 2023
1 parent dcf9b88 commit 6d0226b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FreeAPS/Sources/Modules/Home/View/HomeRootView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
) :
""
)
Expand Down Expand Up @@ -452,7 +452,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")
Expand Down

0 comments on commit 6d0226b

Please sign in to comment.