GP-5898 speed up JythonPlugin startup

Delay printing welcome text until the console is displayed.
This commit is contained in:
dev747368
2025-07-31 20:33:09 +00:00
parent 213a9e48cc
commit 9550bef788

View File

@@ -128,8 +128,10 @@ public class JythonPlugin extends ProgramPlugin
console =
getTool().getService(InterpreterPanelService.class).createInterpreterPanel(this, false);
welcome();
console.addFirstActivationCallback(() -> resetInterpreter());
console.addFirstActivationCallback(() -> {
welcome();
resetInterpreter();
});
createActions();
}