Fix action for open-system-preferences button in alert

This commit is contained in:
Angelo Stavrow 2020-09-22 07:10:13 -04:00
parent 770c1e937c
commit 1c4c24721b
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ private extension WebFeedInspectorViewController {
updateAlert.addButton(withTitle: NSLocalizedString("Close", comment: "Close"))
let modalResponse = updateAlert.runModal()
if modalResponse == .alertFirstButtonReturn {
NSWorkspace.shared.open(URL(fileURLWithPath: "x-apple.systempreferences:com.apple.preference.notifications"))
NSWorkspace.shared.open(URL(string: "x-apple.systempreferences:com.apple.preference.notifications")!)
}
}