mirror of https://github.com/Radarr/Radarr
Fixed force saving provider triggering testing
(cherry picked from commit 65cb1ccafd54479fa3fca1f1eaa4b96222b0176b)
This commit is contained in:
parent
ed54d071c4
commit
318d59bb99
|
@ -94,8 +94,8 @@ namespace Radarr.Api.V3
|
||||||
var hasDefinitionChanged = STJson.ToJson(existingDefinition) != STJson.ToJson(providerDefinition) ||
|
var hasDefinitionChanged = STJson.ToJson(existingDefinition) != STJson.ToJson(providerDefinition) ||
|
||||||
STJson.ToJson(existingDefinition.Settings) != STJson.ToJson(providerDefinition.Settings);
|
STJson.ToJson(existingDefinition.Settings) != STJson.ToJson(providerDefinition.Settings);
|
||||||
|
|
||||||
// Only test existing definitions if it is enabled and forceSave isn't set or the definition has changed.
|
// Only test existing definitions if it is enabled and forceSave isn't set and the definition has changed.
|
||||||
if (providerDefinition.Enable && (!forceSave || hasDefinitionChanged))
|
if (providerDefinition.Enable && !forceSave && hasDefinitionChanged)
|
||||||
{
|
{
|
||||||
Test(providerDefinition, true);
|
Test(providerDefinition, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue