mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-09 00:28:53 +01:00
Don't allow duplicate Reader API accounts to be created.
This commit is contained in:
parent
d0a9d64062
commit
679cd40e84
@ -91,6 +91,11 @@ class AccountsReaderAPIWindowController: NSWindowController {
|
|||||||
return
|
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
|
let apiURL: URL
|
||||||
switch accountType {
|
switch accountType {
|
||||||
case .freshRSS:
|
case .freshRSS:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user