Rename pauseSyncing property on Folder to isSyncingPaused

This commit is contained in:
Maurice Parker
2022-02-01 16:04:31 -08:00
parent 4d622557f9
commit 0858866b41
2 changed files with 5 additions and 5 deletions

View File

@@ -508,8 +508,8 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
} else {
if let title = item.titleFromAttributes, let folder = ensureFolder(with: title) {
folder.externalID = item.attributes?["nnw_externalID"] as? String
if let nnwPauseSyncing = item.attributes?["nnw_pauseSyncing"] as? String, nnwPauseSyncing == "true" {
folder.pauseSyncing = true
if let isSyncingPaused = item.attributes?["nnw_isSyncingPaused"] as? String, isSyncingPaused == "true" {
folder.isSyncingPaused = true
}
item.children?.forEach { itemChild in
if let feedSpecifier = itemChild.feedSpecifier {

View File

@@ -44,7 +44,7 @@ public final class Folder: Feed, Renamable, Container, Hashable {
static let untitledName = NSLocalizedString("Untitled ƒ", comment: "Folder name")
public let folderID: Int // not saved: per-run only
public var pauseSyncing = false
public var isSyncingPaused = false
public var externalID: String? = nil
static var incrementingID = 0
@@ -185,8 +185,8 @@ extension Folder: OPMLRepresentable {
}()
let attrPauseSyncing: String = {
if allowCustomAttributes && pauseSyncing {
return " nnw_pauseSyncing=\"true\""
if allowCustomAttributes && isSyncingPaused {
return " nnw_isSyncingPaused=\"true\""
} else {
return ""
}