Skip to content

Commit

Permalink
merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mountrcg committed Nov 7, 2024
1 parent 4bbf118 commit 0eadbf3
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Config.xcconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
APP_DISPLAY_NAME = iAPS
APP_VERSION = 3.7
APP_VERSION = 3.7.1
APP_BUILD_NUMBER = 1
COPYRIGHT_NOTICE = autoISF 3.0
DEVELOPER_TEAM = ##TEAM_ID##
Expand Down
1 change: 1 addition & 0 deletions FreeAPS/Sources/APS/Storage/CoreDataStorage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ final class CoreDataStorage {
}
return insulinDistribution
}

func insulinConcentration() -> (concentration: Double, increment: Double) {
var conc = [InsulinConcentration]()
coredataContext.performAndWait {
Expand Down
36 changes: 17 additions & 19 deletions FreeAPS/Sources/Modules/Settings/View/SettingsRootView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,27 +93,25 @@ extension Settings {
Toggle("Debug options", isOn: $state.debugOptions)
if state.debugOptions {
Group {
HStack {
Text("NS Upload Profile and Settings")
Button("Upload") { state.uploadProfileAndSettings(true) }
.frame(maxWidth: .infinity, alignment: .trailing)
.buttonStyle(.borderedProminent)
}

HStack {
Text("Delete All NS Overrides")
Button("Delete") { state.deleteOverrides() }
.frame(maxWidth: .infinity, alignment: .trailing)
.buttonStyle(.borderedProminent)
.tint(.red)
} /*

HStack {
Toggle("Ignore flat CGM readings", isOn: $state.disableCGMError)
}
// HStack {
// Text("NS Upload Profile and Settings")
// Button("Upload") { state.uploadProfileAndSettings(true) }
// .frame(maxWidth: .infinity, alignment: .trailing)
// .buttonStyle(.borderedProminent)
// }
// HStack {
// Text("Delete All NS Overrides")
// Button("Delete") { state.deleteOverrides() }
// .frame(maxWidth: .infinity, alignment: .trailing)
// .buttonStyle(.borderedProminent)
// .tint(.red)
// }
// HStack {
// Toggle("Ignore flat CGM readings", isOn: $state.disableCGMError)
// }

HStack {
Toggle("Allow diluted insulin concentration settings", isOn: $state.allowDilution)
Toggle("Allow insulin concentration settings", isOn: $state.allowDilution)
}
}
Group {
Expand Down
16 changes: 8 additions & 8 deletions FreeAPS/Sources/Views/ViewModifiers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ struct AddShadow: ViewModifier {
}
}

struct RaisedRectangle: View {
@Environment(\.colorScheme) var colorScheme
var body: some View {
Rectangle().fill(colorScheme == .dark ? .black : .white)
.frame(height: 1)
.addShadows()
}
}
// struct RaisedRectangle: View {
// @Environment(\.colorScheme) var colorScheme
// var body: some View {
// Rectangle().fill(colorScheme == .dark ? .black : .white)
// .frame(height: 1)
// .addShadows()
// }
// }

struct TestTube: View {
let opacity: CGFloat
Expand Down

0 comments on commit 0eadbf3

Please sign in to comment.