mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-31 21:03:43 +01:00
delete dev plugin instead of disable
This commit is contained in:
parent
d1623267eb
commit
56002d5e98
1 changed files with 24 additions and 7 deletions
|
|
@ -753,16 +753,33 @@ namespace Dalamud.Plugin.Internal
|
|||
}
|
||||
}
|
||||
|
||||
try
|
||||
if (plugin.IsDev)
|
||||
{
|
||||
plugin.Disable();
|
||||
this.InstalledPlugins = this.InstalledPlugins.Remove(plugin);
|
||||
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;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
else
|
||||
{
|
||||
Log.Error(ex, "Error during disable (update)");
|
||||
updateStatus.WasUpdated = false;
|
||||
return updateStatus;
|
||||
try
|
||||
{
|
||||
plugin.Disable();
|
||||
this.InstalledPlugins = this.InstalledPlugins.Remove(plugin);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Error(ex, "Error during disable (update)");
|
||||
updateStatus.WasUpdated = false;
|
||||
return updateStatus;
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue