mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-18 21:35:27 -04:00
New: Don't forcibly retest indexers/download clients/connections on save if previously enabled
Closes #1028
This commit is contained in:
@@ -84,8 +84,10 @@ namespace Sonarr.Api.V3
|
||||
private void UpdateProvider(TProviderResource providerResource)
|
||||
{
|
||||
var providerDefinition = GetDefinition(providerResource, false);
|
||||
var existingDefinition = _providerFactory.Get(providerDefinition.Id);
|
||||
|
||||
if (providerDefinition.Enable)
|
||||
// Only test existing definitions if it was previously disabled
|
||||
if (providerDefinition.Enable && !existingDefinition.Enable)
|
||||
{
|
||||
Test(providerDefinition, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user