fix: add plugins to testing opt-ins when loading at startup

This commit is contained in:
goat 2022-10-29 15:50:38 +02:00
parent 6fd636c26c
commit b4a89020e0
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B

View file

@ -378,6 +378,9 @@ Thanks and have fun!";
var manifest = LocalPluginManifest.Load(manifestFile);
if (manifest.IsTestingExclusive && this.configuration.PluginTestingOptIns!.All(x => x.InternalName != manifest.InternalName))
this.configuration.PluginTestingOptIns.Add(new PluginTestingOptIn(manifest.InternalName));
versionsDefs.Add(new PluginDef(dllFile, manifest, false));
}
catch (Exception ex)
@ -386,6 +389,8 @@ Thanks and have fun!";
}
}
this.configuration.Save();
try
{
pluginDefs.Add(versionsDefs.OrderByDescending(x => x.Manifest!.EffectiveVersion).First());