mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Prevent delete while refresh in progress
This commit is contained in:
@@ -120,6 +120,10 @@ public final class AccountManager: UnreadCountProvider {
|
||||
|
||||
public func deleteAccount(_ account: Account) {
|
||||
|
||||
guard !account.refreshInProgress else {
|
||||
return
|
||||
}
|
||||
|
||||
accountsDictionary.removeValue(forKey: account.accountID)
|
||||
|
||||
do {
|
||||
|
||||
Reference in New Issue
Block a user