mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Create handleUnreadCountDidChange as shared AppDelegate code.
This commit is contained in:
@@ -46,9 +46,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
||||
var unreadCount = 0 {
|
||||
didSet {
|
||||
if unreadCount != oldValue {
|
||||
AppNotification.postAppUnreadCountDidChange(from: self, unreadCount: unreadCount)
|
||||
postUnreadCountDidChangeNotification()
|
||||
UNUserNotificationCenter.current().setBadgeCount(unreadCount)
|
||||
handleUnreadCountDidChange()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user