mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-04 11:16:59 +00:00
Delete unused showNotificationsDeniedError.
This commit is contained in:
1 parent
1690695eed
commit
7cd2e4f312
1 file changed
-13
@@ -234,19 +234,6 @@ private extension GeneralPreferencesViewController {
|
||||
}
|
||||
}
|
||||
|
||||
func showNotificationsDeniedError() {
|
||||
let updateAlert = NSAlert()
|
||||
updateAlert.alertStyle = .informational
|
||||
updateAlert.messageText = NSLocalizedString("Enable Notifications", comment: "Notifications")
|
||||
updateAlert.informativeText = NSLocalizedString("To enable notifications, open Notifications in System Preferences, then find NetNewsWire in the list.", comment: "To enable notifications, open Notifications in System Preferences, then find NetNewsWire in the list.")
|
||||
updateAlert.addButton(withTitle: NSLocalizedString("Open System Preferences", comment: "Open System Preferences"))
|
||||
updateAlert.addButton(withTitle: NSLocalizedString("Close", comment: "Close"))
|
||||
let modalResponse = updateAlert.runModal()
|
||||
if modalResponse == .alertFirstButtonReturn {
|
||||
NSWorkspace.shared.open(URL(string: "x-apple.systempreferences:com.apple.preference.notifications")!)
|
||||
}
|
||||
}
|
||||
|
||||
@objc var openFeedsInDefaultNewsReader: Bool {
|
||||
get {
|
||||
return AppDefaults.shared.subscribeToFeedsInDefaultBrowser
|
||||
|
||||
Reference in new issue
Block a user