Merge pull request #1079 from Aireil/dec

fix: do not decommission if repo has not loaded properly
This commit is contained in:
goat 2023-01-14 16:06:30 +01:00 committed by GitHub
commit edcb2bc48e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -225,6 +225,7 @@ internal class LocalPlugin : IDisposable
/// Gets a value indicating whether or not this plugin is serviced(repo still exists, but plugin no longer does). /// Gets a value indicating whether or not this plugin is serviced(repo still exists, but plugin no longer does).
/// </summary> /// </summary>
public bool IsDecommissioned => !this.IsDev && public bool IsDecommissioned => !this.IsDev &&
this.GetSourceRepository()?.State == PluginRepositoryState.Success &&
this.GetSourceRepository()?.PluginMaster?.FirstOrDefault(x => x.InternalName == this.Manifest.InternalName) == null; this.GetSourceRepository()?.PluginMaster?.FirstOrDefault(x => x.InternalName == this.Manifest.InternalName) == null;
/// <summary> /// <summary>