mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-03 20:37:34 +01:00
Don't count OnMyMac accounts as potential duplicates.
This commit is contained in:
parent
cc7e89215c
commit
3345c05808
@ -166,6 +166,9 @@ public final class AccountManager: UnreadCountProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public func duplicateServiceAccount(type: AccountType, username: String?) -> Bool {
|
public func duplicateServiceAccount(type: AccountType, username: String?) -> Bool {
|
||||||
|
guard type != .onMyMac else {
|
||||||
|
return false
|
||||||
|
}
|
||||||
for account in accounts {
|
for account in accounts {
|
||||||
if account.type == type && username == account.username {
|
if account.type == type && username == account.username {
|
||||||
return true
|
return true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user