Browse Source

merge upstream

kskandis 1 year ago
parent
commit
afeb918963

+ 1 - 11
FreeAPS/Sources/Modules/GlucoseNotificationSettings/View/GlucoseNotificationSettingsRootView.swift

@@ -14,7 +14,6 @@ extension GlucoseNotificationSettings {
         @State var hintLabel: String?
         @State var hintLabel: String?
         @State private var decimalPlaceholder: Decimal = 0.0
         @State private var decimalPlaceholder: Decimal = 0.0
         @State private var booleanPlaceholder: Bool = false
         @State private var booleanPlaceholder: Bool = false
-        @State var notificationsDisabled = false
         @State private var displayPickerLowGlucose: Bool = false
         @State private var displayPickerLowGlucose: Bool = false
         @State private var displayPickerHighGlucose: Bool = false
         @State private var displayPickerHighGlucose: Bool = false
 
 
@@ -211,17 +210,8 @@ extension GlucoseNotificationSettings {
                     sheetTitle: "Help"
                     sheetTitle: "Help"
                 )
                 )
             }
             }
-            .onReceive(
-                resolver.resolve(AlertPermissionsChecker.self)!.$notificationsDisabled,
-                perform: {
-                    notificationsDisabled = $0
-                }
-            )
             .scrollContentBackground(.hidden).background(color)
             .scrollContentBackground(.hidden).background(color)
-//            .onAppear(perform: configureView)
-            .onAppear {
-                configureView {}
-            }
+            .onAppear(perform: configureView)
             .navigationBarTitle("Trio Notifications")
             .navigationBarTitle("Trio Notifications")
             .navigationBarTitleDisplayMode(.automatic)
             .navigationBarTitleDisplayMode(.automatic)
         }
         }