Skip to content

Commit

Permalink
Merge pull request #1334 from pjonsson/cooja-updategui
Browse files Browse the repository at this point in the history
Cooja: move GUI update call
  • Loading branch information
nfi authored Oct 3, 2023
2 parents 6ee1f24 + 849c4a8 commit 3753349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/org/contikios/cooja/Cooja.java
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,6 @@ Plugin startPlugin(final Class<? extends Plugin> 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();
Expand Down Expand Up @@ -704,6 +703,7 @@ public Boolean work() {
} catch (Exception e) {
// Could not minimize/select.
}
gui.updateGUIComponentState();
return true;
}
}.invokeAndWait();
Expand Down

0 comments on commit 3753349

Please sign in to comment.