From 9550bef788dc8dabbc1dc1d5307e9ddeba3015d4 Mon Sep 17 00:00:00 2001 From: dev747368 <48332326+dev747368@users.noreply.github.com> Date: Thu, 31 Jul 2025 20:33:09 +0000 Subject: [PATCH] GP-5898 speed up JythonPlugin startup Delay printing welcome text until the console is displayed. --- .../Jython/src/main/java/ghidra/jython/JythonPlugin.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Ghidra/Features/Jython/src/main/java/ghidra/jython/JythonPlugin.java b/Ghidra/Features/Jython/src/main/java/ghidra/jython/JythonPlugin.java index 263cf88b15..088df32e2e 100644 --- a/Ghidra/Features/Jython/src/main/java/ghidra/jython/JythonPlugin.java +++ b/Ghidra/Features/Jython/src/main/java/ghidra/jython/JythonPlugin.java @@ -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(); }