diff --git a/java/org/contikios/cooja/Cooja.java b/java/org/contikios/cooja/Cooja.java index a730338b8..e2294261e 100644 --- a/java/org/contikios/cooja/Cooja.java +++ b/java/org/contikios/cooja/Cooja.java @@ -628,7 +628,6 @@ Plugin startPlugin(final Class pluginClass, Simulation sim, Mo // Add to active plugins list var coojaPlugin = pluginType == PluginType.PType.COOJA_PLUGIN || pluginType == PluginType.PType.COOJA_STANDARD_PLUGIN; (coojaPlugin ? startedPlugins : sim.startedPlugins).add(plugin); - updateGUIComponentState(); // Show plugin if visualizer type final var pluginFrame = plugin.getCooja(); @@ -704,6 +703,7 @@ public Boolean work() { } catch (Exception e) { // Could not minimize/select. } + gui.updateGUIComponentState(); return true; } }.invokeAndWait();