From 8df665551e8f415b0c1cc7571c7b9b32474ad23d Mon Sep 17 00:00:00 2001 From: Aireil <33433913+Aireil@users.noreply.github.com> Date: Sat, 14 Jan 2023 16:00:34 +0100 Subject: [PATCH] fix: do not decommission if repo has not loaded properly --- Dalamud/Plugin/Internal/Types/LocalPlugin.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Dalamud/Plugin/Internal/Types/LocalPlugin.cs b/Dalamud/Plugin/Internal/Types/LocalPlugin.cs index d01cc17e7..9d36a1644 100644 --- a/Dalamud/Plugin/Internal/Types/LocalPlugin.cs +++ b/Dalamud/Plugin/Internal/Types/LocalPlugin.cs @@ -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). /// public bool IsDecommissioned => !this.IsDev && + this.GetSourceRepository()?.State == PluginRepositoryState.Success && this.GetSourceRepository()?.PluginMaster?.FirstOrDefault(x => x.InternalName == this.Manifest.InternalName) == null; ///