mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Don't allow duplicate Reader API accounts to be created.
This commit is contained in:
@@ -91,6 +91,11 @@ class AccountsReaderAPIWindowController: NSWindowController {
|
||||
return
|
||||
}
|
||||
|
||||
guard !AccountManager.shared.duplicateServiceAccount(type: accountType, username: usernameTextField.stringValue) else {
|
||||
self.errorMessageLabel.stringValue = NSLocalizedString("There is already an account of this type with that username created.", comment: "Duplicate Error")
|
||||
return
|
||||
}
|
||||
|
||||
let apiURL: URL
|
||||
switch accountType {
|
||||
case .freshRSS:
|
||||
|
||||
Reference in New Issue
Block a user