feat: add orphaned plugins regardless, inform users in installer

This commit is contained in:
goat 2022-07-03 18:02:46 +02:00
parent 12722c776d
commit ce8e088044
No known key found for this signature in database
GPG key ID: 7773BB5B43BA52E5
2 changed files with 29 additions and 7 deletions

View file

@ -658,11 +658,8 @@ internal partial class PluginManager : IDisposable, IServiceType
manifest.Testing = true;
}
if (repoManifest.SourceRepo.IsThirdParty)
{
// Only document the url if it came from a third party repo.
manifest.InstalledFromUrl = repoManifest.SourceRepo.PluginMasterUrl;
}
// Document the url the plugin was installed from
manifest.InstalledFromUrl = repoManifest.SourceRepo.PluginMasterUrl;
manifest.Save(manifestFile);
@ -740,9 +737,14 @@ internal partial class PluginManager : IDisposable, IServiceType
}
else if (plugin.IsOutdated)
{
// Out of date plugins get added so they can be updated.
// Out of date plugins get added, so they can be updated.
Log.Information(ex, $"Plugin was outdated, adding anyways: {dllFile.Name}");
}
else if (plugin.IsOrphaned)
{
// Orphaned plugins get added, so that users aren't confused.
Log.Information(ex, $"Plugin was orphaned, adding anyways: {dllFile.Name}");
}
else if (isBoot)
{
// During boot load, plugins always get added to the list so they can be fiddled with in the UI