mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Rename pauseSyncing property on Folder to isSyncingPaused
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user