clientui: run PluginPanel#onDeactivate when switching panels

This commit is contained in:
Cyborger1
2022-02-25 13:04:13 -05:00
committed by GitHub
parent d94abb884d
commit d8c67fa9b8

View File

@@ -983,6 +983,13 @@ public class ClientUI
int width = panel.getWrappedPanel().getPreferredSize().width;
int expandBy = pluginPanel != null ? pluginPanel.getWrappedPanel().getPreferredSize().width - width : width;
// Deactivate previously active panel
if (pluginPanel != null)
{
pluginPanel.onDeactivate();
}
pluginPanel = panel;
// Expand sidebar