clientui: run PluginPanel#onDeactivate when switching panels
This commit is contained in:
@@ -983,6 +983,13 @@ public class ClientUI
|
|||||||
|
|
||||||
int width = panel.getWrappedPanel().getPreferredSize().width;
|
int width = panel.getWrappedPanel().getPreferredSize().width;
|
||||||
int expandBy = pluginPanel != null ? pluginPanel.getWrappedPanel().getPreferredSize().width - width : width;
|
int expandBy = pluginPanel != null ? pluginPanel.getWrappedPanel().getPreferredSize().width - width : width;
|
||||||
|
|
||||||
|
// Deactivate previously active panel
|
||||||
|
if (pluginPanel != null)
|
||||||
|
{
|
||||||
|
pluginPanel.onDeactivate();
|
||||||
|
}
|
||||||
|
|
||||||
pluginPanel = panel;
|
pluginPanel = panel;
|
||||||
|
|
||||||
// Expand sidebar
|
// Expand sidebar
|
||||||
|
|||||||
Reference in New Issue
Block a user