Rename AccountsDidChangeNotification to AccountsDidChange to match other notification names.

This commit is contained in:
Maurice Parker 2019-05-19 15:51:08 -05:00
parent 07ac60cec3
commit 80e1888244
3 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ import RSCore
import Articles
public extension Notification.Name {
static let AccountsDidChangeNotification = Notification.Name(rawValue: "AccountsDidChangeNotification")
static let AccountsDidChange = Notification.Name(rawValue: "AccountsDidChange")
}
private let defaultAccountFolderName = "OnMyMac"
@ -114,7 +114,7 @@ public final class AccountManager: UnreadCountProvider {
let account = Account(dataFolder: accountFolder, type: type, accountID: accountID)!
accountsDictionary[accountID] = account
NotificationCenter.default.post(name: .AccountsDidChangeNotification, object: self)
NotificationCenter.default.post(name: .AccountsDidChange, object: self)
return account
}
@ -136,7 +136,7 @@ public final class AccountManager: UnreadCountProvider {
}
updateUnreadCount()
NotificationCenter.default.post(name: .AccountsDidChangeNotification, object: self)
NotificationCenter.default.post(name: .AccountsDidChange, object: self)
}

View File

@ -53,7 +53,7 @@ protocol SidebarDelegate: class {
NotificationCenter.default.addObserver(self, selector: #selector(unreadCountDidChange(_:)), name: .UnreadCountDidChange, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(containerChildrenDidChange(_:)), name: .ChildrenDidChange, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(accountsDidChangeNotification(_:)), name: .AccountsDidChangeNotification, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(accountsDidChangeNotification(_:)), name: .AccountsDidChange, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(accountStateDidChangeNotification(_:)), name: .AccountStateDidChange, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(userDidAddFeed(_:)), name: .UserDidAddFeed, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(batchUpdateDidPerform(_:)), name: .BatchUpdateDidPerform, object: nil)

View File

@ -25,7 +25,7 @@ final class AccountsPreferencesViewController: NSViewController {
tableView.dataSource = self
NotificationCenter.default.addObserver(self, selector: #selector(displayNameDidChange(_:)), name: .DisplayNameDidChange, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(accountsDidChangeNotification(_:)), name: .AccountsDidChangeNotification, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(accountsDidChangeNotification(_:)), name: .AccountsDidChange, object: nil)
showController(AccountsAddViewController())