mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-22 23:58:36 +01:00
Change property to have correct swift naming convention name
This commit is contained in:
parent
a5c065fcb9
commit
ae63805479
@ -83,7 +83,7 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
|
||||
}
|
||||
|
||||
private var fetchingAllUnreadCounts = false
|
||||
var unreadCountsInitialized = false
|
||||
var isUnreadCountsInitialized = false
|
||||
|
||||
let dataFolder: String
|
||||
let database: ArticlesDatabase
|
||||
@ -887,7 +887,7 @@ private extension Account {
|
||||
if unreadCountDictionary.isEmpty {
|
||||
self.fetchingAllUnreadCounts = false
|
||||
self.updateUnreadCount()
|
||||
self.unreadCountsInitialized = true
|
||||
self.isUnreadCountsInitialized = true
|
||||
return
|
||||
}
|
||||
|
||||
@ -904,7 +904,7 @@ private extension Account {
|
||||
}
|
||||
self.fetchingAllUnreadCounts = false
|
||||
self.updateUnreadCount()
|
||||
self.unreadCountsInitialized = true
|
||||
self.isUnreadCountsInitialized = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -22,9 +22,9 @@ public final class AccountManager: UnreadCountProvider {
|
||||
private let accountsFolder = RSDataSubfolder(nil, "Accounts")!
|
||||
private var accountsDictionary = [String: Account]()
|
||||
|
||||
public var unreadCountsInitialized: Bool {
|
||||
public var isUnreadCountsInitialized: Bool {
|
||||
for account in accounts {
|
||||
if !account.unreadCountsInitialized {
|
||||
if !account.isUnreadCountsInitialized {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
@ -175,7 +175,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDele
|
||||
os_log("Accounts refresh processing terminated for running too long.", log: self.log, type: .info)
|
||||
}
|
||||
|
||||
while(!AccountManager.shared.unreadCountsInitialized) {
|
||||
while(!AccountManager.shared.isUnreadCountsInitialized) {
|
||||
os_log("Waiting for unread counts to be initialized...", log: self.log, type: .debug)
|
||||
sleep(1)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user