Merge pull request #2452 from AngeloStavrow/mac-release

Fix action for open-system-preferences button in alert
This commit is contained in:
Maurice Parker 2020-09-22 18:52:49 -05:00 committed by GitHub
commit 175d7f5bee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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")!)
}
}