Fix URL of System Preferences so that it will open correctly. Issue #2423

This commit is contained in:
Maurice C Parker
2020-09-17 17:46:40 -05:00
parent 0aff2c3311
commit 438d9bd5ed

View File

@@ -161,7 +161,7 @@ private extension GeneralPreferencesViewController {
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")!)
}
}