1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-17 21:26:13 -04:00

Fixed force saving provider triggering testing

This commit is contained in:
Mark McDowall
2023-11-19 21:02:28 -08:00
parent d211887050
commit 65cb1ccafd

View File

@@ -95,8 +95,8 @@ namespace Sonarr.Api.V3
var hasDefinitionChanged = STJson.ToJson(existingDefinition) != STJson.ToJson(providerDefinition) ||
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.
if (providerDefinition.Enable && (!forceSave || hasDefinitionChanged))
// Only test existing definitions if it is enabled and forceSave isn't set and the definition has changed.
if (providerDefinition.Enable && !forceSave && hasDefinitionChanged)
{
Test(providerDefinition, true);
}