mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
dont add cred providers with a duplicate guid
This commit is contained in:
@@ -16,6 +16,7 @@ namespace mRemoteNG.Credential
|
||||
|
||||
public void AddProvider(ICredentialRepository credentialProvider)
|
||||
{
|
||||
if (Contains(credentialProvider.Config.Id)) return;
|
||||
_credentialProviders.Add(credentialProvider);
|
||||
RaiseCollectionChangedEvent(NotifyCollectionChangedAction.Add, new[] { credentialProvider });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user