fix: do not decommission if repo has not loaded properly

This commit is contained in:
Aireil 2023-01-14 16:00:34 +01:00
parent 6a9c23573f
commit 8df665551e
No known key found for this signature in database
GPG key ID: EA9CA38B48706D3D

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).
/// </summary>
public bool IsDecommissioned => !this.IsDev &&
this.GetSourceRepository()?.State == PluginRepositoryState.Success &&
this.GetSourceRepository()?.PluginMaster?.FirstOrDefault(x => x.InternalName == this.Manifest.InternalName) == null;
/// <summary>