mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Avoid exception log when updating a plugin that is not installed
This commit is contained in:
parent
f912e42f94
commit
82d811ed9d
1 changed files with 8 additions and 5 deletions
|
|
@ -216,11 +216,14 @@ namespace Dalamud.Plugin
|
||||||
Log.Verbose("wasEnabled: {0}", wasEnabled);
|
Log.Verbose("wasEnabled: {0}", wasEnabled);
|
||||||
|
|
||||||
// Try to disable plugin if it is loaded
|
// Try to disable plugin if it is loaded
|
||||||
try {
|
if (wasEnabled) {
|
||||||
this.dalamud.PluginManager.DisablePlugin(info);
|
try {
|
||||||
} catch (Exception ex) {
|
this.dalamud.PluginManager.DisablePlugin(info);
|
||||||
Log.Error(ex, "Plugin disable failed");
|
}
|
||||||
//hasError = true;
|
catch (Exception ex) {
|
||||||
|
Log.Error(ex, "Plugin disable failed");
|
||||||
|
//hasError = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue