mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-03-25 08:55:46 +00:00
Adds a settings button that loads MacOS Notification when user denies access
This commit is contained in:
parent
094bb6f0cc
commit
11e8fdecf8
1 changed files with 4 additions and 1 deletions
|
|
@ -11,8 +11,11 @@ struct NotificationsView: View {
|
|||
Text("Access Granted. You will receive notifications from Xcodes.")
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
case .shownAndDenied:
|
||||
Text("⚠️ Access Denied ⚠️\n\nPlease open your Notification Settings if you wish to allow access.")
|
||||
Text("⚠️ Access Denied ⚠️\n\nPlease open your Notification Settings and select Xcodes if you wish to allow access.")
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
Button("Notification Settings", action: {
|
||||
NSWorkspace.shared.open(URL(string: "x-apple.systempreferences:com.apple.preference.notifications")!)
|
||||
})
|
||||
|
||||
default:
|
||||
Button("Enable Notifications", action: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue