Rename AccountsDidChangeNotification to AccountsDidChange to match other notification names.
This commit is contained in:
parent
07ac60cec3
commit
80e1888244
|
@ -11,7 +11,7 @@ import RSCore
|
||||||
import Articles
|
import Articles
|
||||||
|
|
||||||
public extension Notification.Name {
|
public extension Notification.Name {
|
||||||
static let AccountsDidChangeNotification = Notification.Name(rawValue: "AccountsDidChangeNotification")
|
static let AccountsDidChange = Notification.Name(rawValue: "AccountsDidChange")
|
||||||
}
|
}
|
||||||
|
|
||||||
private let defaultAccountFolderName = "OnMyMac"
|
private let defaultAccountFolderName = "OnMyMac"
|
||||||
|
@ -114,7 +114,7 @@ public final class AccountManager: UnreadCountProvider {
|
||||||
let account = Account(dataFolder: accountFolder, type: type, accountID: accountID)!
|
let account = Account(dataFolder: accountFolder, type: type, accountID: accountID)!
|
||||||
accountsDictionary[accountID] = account
|
accountsDictionary[accountID] = account
|
||||||
|
|
||||||
NotificationCenter.default.post(name: .AccountsDidChangeNotification, object: self)
|
NotificationCenter.default.post(name: .AccountsDidChange, object: self)
|
||||||
|
|
||||||
return account
|
return account
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ public final class AccountManager: UnreadCountProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
updateUnreadCount()
|
updateUnreadCount()
|
||||||
NotificationCenter.default.post(name: .AccountsDidChangeNotification, object: self)
|
NotificationCenter.default.post(name: .AccountsDidChange, object: self)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ protocol SidebarDelegate: class {
|
||||||
|
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(unreadCountDidChange(_:)), name: .UnreadCountDidChange, object: nil)
|
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(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(accountStateDidChangeNotification(_:)), name: .AccountStateDidChange, object: nil)
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(userDidAddFeed(_:)), name: .UserDidAddFeed, object: nil)
|
NotificationCenter.default.addObserver(self, selector: #selector(userDidAddFeed(_:)), name: .UserDidAddFeed, object: nil)
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(batchUpdateDidPerform(_:)), name: .BatchUpdateDidPerform, object: nil)
|
NotificationCenter.default.addObserver(self, selector: #selector(batchUpdateDidPerform(_:)), name: .BatchUpdateDidPerform, object: nil)
|
||||||
|
|
|
@ -25,7 +25,7 @@ final class AccountsPreferencesViewController: NSViewController {
|
||||||
tableView.dataSource = self
|
tableView.dataSource = self
|
||||||
|
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(displayNameDidChange(_:)), name: .DisplayNameDidChange, object: nil)
|
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())
|
showController(AccountsAddViewController())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue