mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
fix: run HandleRemovedNodes inbetween devplugin reloads
This commit is contained in:
parent
08b5739369
commit
e62984d270
1 changed files with 6 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ using System.Reflection;
|
||||||
|
|
||||||
using Dalamud.Configuration.Internal;
|
using Dalamud.Configuration.Internal;
|
||||||
using Dalamud.Game;
|
using Dalamud.Game;
|
||||||
|
using Dalamud.Game.Gui.Dtr;
|
||||||
using Dalamud.IoC.Internal;
|
using Dalamud.IoC.Internal;
|
||||||
using Dalamud.Logging.Internal;
|
using Dalamud.Logging.Internal;
|
||||||
using Dalamud.Plugin.Internal.Exceptions;
|
using Dalamud.Plugin.Internal.Exceptions;
|
||||||
|
|
@ -416,6 +417,11 @@ namespace Dalamud.Plugin.Internal
|
||||||
public void Reload()
|
public void Reload()
|
||||||
{
|
{
|
||||||
this.Unload(true);
|
this.Unload(true);
|
||||||
|
|
||||||
|
// We need to handle removed DTR nodes here, as otherwise, plugins will not be able to re-add their bar entries after updates.
|
||||||
|
var dtr = Service<DtrBar>.Get();
|
||||||
|
dtr.HandleRemovedNodes();
|
||||||
|
|
||||||
this.Load(PluginLoadReason.Reload, true);
|
this.Load(PluginLoadReason.Reload, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue