Fix some build errors.
This commit is contained in:
parent
04612049f5
commit
cb4027a951
|
@ -24,7 +24,7 @@ import Account
|
|||
treeController = TreeController(delegate: treeControllerDelegate)
|
||||
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(unreadCountDidChange(_:)), name: .UnreadCountDidChange, object: nil)
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(folderChildrenDidChange(_:)), name: NSNotification.Name(rawValue: FolderChildrenDidChangeNotification), object: nil)
|
||||
// NotificationCenter.default.addObserver(self, selector: #selector(folderChildrenDidChange(_:)), name: NSNotification.Name(rawValue: FolderChildrenDidChangeNotification), object: nil)
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(userDidAddFeed(_:)), name: UserDidAddFeedNotification, object: nil)
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(dataModelDidPerformBatchUpdates(_:)), name: .DataModelDidPerformBatchUpdates, object: nil)
|
||||
|
||||
|
|
|
@ -120,13 +120,15 @@ public final class Account: DisplayNameProvider, Hashable {
|
|||
return didAddFeed // TODO
|
||||
}
|
||||
|
||||
public func createFeed(with name: String, editedName: String, url: String) -> Feed {
|
||||
public func createFeed(with name: String?, editedName: String?, url: String) -> Feed? {
|
||||
|
||||
// For syncing, this may need to be an async method with a callback,
|
||||
// since it will likely need to call the server.
|
||||
|
||||
if let feed = existingFeed(withURL: url) {
|
||||
feed.editedName = editedName
|
||||
if let editedName = editedName {
|
||||
feed.editedName = editedName
|
||||
}
|
||||
return feed
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue