mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Wrap OPML import in BatchUpdate. This makes it pretty much instant. Fix #653.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import RSCore
|
||||
import RSParser
|
||||
import Articles
|
||||
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
|
||||
// OPML all accounts.
|
||||
account.loadOPML(loadDocument)
|
||||
BatchUpdate.shared.perform {
|
||||
account.loadOPML(loadDocument)
|
||||
}
|
||||
completion(.success(()))
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user