Wrap OPML import in BatchUpdate. This makes it pretty much instant. Fix #653.
This commit is contained in:
parent
31f8348d11
commit
e974d788ff
|
@ -7,6 +7,7 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
import RSCore
|
||||||
import RSParser
|
import RSParser
|
||||||
import Articles
|
import Articles
|
||||||
import RSWeb
|
import RSWeb
|
||||||
|
@ -81,7 +82,9 @@ final class LocalAccountDelegate: AccountDelegate {
|
||||||
|
|
||||||
// We use the same mechanism to load local accounts as we do to load the subscription
|
// We use the same mechanism to load local accounts as we do to load the subscription
|
||||||
// OPML all accounts.
|
// OPML all accounts.
|
||||||
|
BatchUpdate.shared.perform {
|
||||||
account.loadOPML(loadDocument)
|
account.loadOPML(loadDocument)
|
||||||
|
}
|
||||||
completion(.success(()))
|
completion(.success(()))
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue