Remove reference to NSCalendarDayChanged — it’s no longer necessary to update the Today feed unread count when the day changes.
This commit is contained in:
parent
8acab45cf9
commit
05faea53c4
|
@ -59,7 +59,6 @@ protocol SidebarDelegate: class {
|
|||
NotificationCenter.default.addObserver(self, selector: #selector(feedSettingDidChange(_:)), name: .FeedSettingDidChange, object: nil)
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(displayNameDidChange(_:)), name: .DisplayNameDidChange, object: nil)
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(userDidRequestSidebarSelection(_:)), name: .UserDidRequestSidebarSelection, object: nil)
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(calendarDayChanged(_:)), name: .NSCalendarDayChanged, object: nil)
|
||||
|
||||
outlineView.reloadData()
|
||||
|
||||
|
@ -139,12 +138,6 @@ protocol SidebarDelegate: class {
|
|||
revealAndSelectRepresentedObject(feed as AnyObject)
|
||||
}
|
||||
|
||||
@objc func calendarDayChanged(_ note: Notification) {
|
||||
DispatchQueue.main.async {
|
||||
SmartFeedsController.shared.todayFeed.fetchUnreadCounts()
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Actions
|
||||
|
||||
@IBAction func delete(_ sender: AnyObject?) {
|
||||
|
|
Loading…
Reference in New Issue