Просмотр исходного кода

Hide modal when clicking "Snooze"

(cherry picked from commit 92cb7dfd96c1d0bd4ddf13431e1a1b45d9753f2f)
Jon Mårtensson 2 лет назад
Родитель
Сommit
b0266350f9
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      FreeAPS/Sources/Modules/Snooze/View/SnoozeRootView.swift

+ 1 - 0
FreeAPS/Sources/Modules/Snooze/View/SnoozeRootView.swift

@@ -88,6 +88,7 @@ extension Snooze {
                     debug(.default, "will snooze for \(snoozeFor) until \(dateFormatter.string(from: untilDate))")
                     debug(.default, "will snooze for \(snoozeFor) until \(dateFormatter.string(from: untilDate))")
                     snoozeDescription = getSnoozeDescription()
                     snoozeDescription = getSnoozeDescription()
                     BaseUserNotificationsManager.stopSound()
                     BaseUserNotificationsManager.stopSound()
+                    state.hideModal()
                 } label: {
                 } label: {
                     Text("Click to Snooze Alerts")
                     Text("Click to Snooze Alerts")
                         .padding()
                         .padding()