Rename AccountManageer.localAccount to AccountManager.defaultAccount to make it different from other local accounts

This commit is contained in:
Maurice Parker
2019-05-01 05:53:18 -05:00
parent a682a78820
commit 4bc7611721
10 changed files with 18 additions and 18 deletions

View File

@@ -127,7 +127,7 @@ extension SettingsViewController: UIDocumentPickerDelegate {
for url in urls {
do {
try OPMLImporter.parseAndImport(fileURL: url, account: AccountManager.shared.localAccount)
try OPMLImporter.parseAndImport(fileURL: url, account: AccountManager.shared.defaultAccount)
} catch {
presentError(title: "OPML Import Error", message: error.localizedDescription)
}
@@ -174,7 +174,7 @@ private extension SettingsViewController {
let filename = "MySubscriptions.opml"
let tempFile = FileManager.default.temporaryDirectory.appendingPathComponent(filename)
let opmlString = OPMLExporter.OPMLString(with: AccountManager.shared.localAccount, title: filename)
let opmlString = OPMLExporter.OPMLString(with: AccountManager.shared.defaultAccount, title: filename)
do {
try opmlString.write(to: tempFile, atomically: true, encoding: String.Encoding.utf8)
} catch {