delete dev plugin instead of disable

This commit is contained in:
Raymond 2021-09-14 12:29:31 -04:00
parent d1623267eb
commit 56002d5e98

View file

@ -753,6 +753,22 @@ namespace Dalamud.Plugin.Internal
}
}
if (plugin.IsDev)
{
try
{
plugin.DllFile.Delete();
this.InstalledPlugins = this.InstalledPlugins.Remove(plugin);
}
catch (Exception ex)
{
Log.Error(ex, "Error during delete (update)");
updateStatus.WasUpdated = false;
return updateStatus;
}
}
else
{
try
{
plugin.Disable();
@ -764,6 +780,7 @@ namespace Dalamud.Plugin.Internal
updateStatus.WasUpdated = false;
return updateStatus;
}
}
try
{