Fix the mod panels header not resetting data when a selected mod updates.

This commit is contained in:
Ottermandias 2023-12-24 14:36:21 +01:00
parent 28752e2630
commit f8331bc4d8
5 changed files with 32 additions and 10 deletions

View file

@ -1,5 +1,6 @@
using Dalamud.Plugin;
using Penumbra.Mods;
using Penumbra.Services;
using Penumbra.UI.AdvancedWindow;
namespace Penumbra.UI.ModsTab;
@ -13,13 +14,13 @@ public class ModPanel : IDisposable
private readonly ModPanelTabBar _tabs;
public ModPanel(DalamudPluginInterface pi, ModFileSystemSelector selector, ModEditWindow editWindow, ModPanelTabBar tabs,
MultiModPanel multiModPanel)
MultiModPanel multiModPanel, CommunicatorService communicator)
{
_selector = selector;
_editWindow = editWindow;
_tabs = tabs;
_multiModPanel = multiModPanel;
_header = new ModPanelHeader(pi);
_header = new ModPanelHeader(pi, communicator);
_selector.SelectionChanged += OnSelectionChange;
}