Change property to have correct swift naming convention name

This commit is contained in:
Maurice Parker 2019-04-27 16:16:46 -05:00
parent a5c065fcb9
commit ae63805479
3 changed files with 6 additions and 6 deletions

View File

@ -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
}
}
}

View File

@ -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
}
}

View File

@ -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)
}