mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-02 12:06:58 +01:00
Don't allow duplicate accounts to be added for FeedWrangler
This commit is contained in:
parent
d0cc9654f2
commit
19a2cc962d
@ -56,6 +56,11 @@ class AccountsFeedWranglerWindowController: NSWindowController {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
guard !AccountManager.shared.duplicateServiceAccount(type: .feedWrangler, username: usernameTextField.stringValue) else {
|
||||||
|
self.errorMessageLabel.stringValue = NSLocalizedString("There is already a FeedWrangler account with that username created.", comment: "Duplicate Error")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
actionButton.isEnabled = false
|
actionButton.isEnabled = false
|
||||||
progressIndicator.isHidden = false
|
progressIndicator.isHidden = false
|
||||||
progressIndicator.startAnimation(self)
|
progressIndicator.startAnimation(self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user