浏览代码

Hide modal when clicking "Snooze"

(cherry picked from commit 92cb7dfd96c1d0bd4ddf13431e1a1b45d9753f2f)
Jon Mårtensson 2 年之前
父节点
当前提交
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))")
                     snoozeDescription = getSnoozeDescription()
                     BaseUserNotificationsManager.stopSound()
+                    state.hideModal()
                 } label: {
                     Text("Click to Snooze Alerts")
                         .padding()