From 400845ac163d33a87631bce0a368759c37508d33 Mon Sep 17 00:00:00 2001 From: gobbo_a Date: Wed, 14 Jan 2026 16:20:04 +0100 Subject: [PATCH] Bug fix --- correlation/src/main/pkg/plugins/Correlation.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/correlation/src/main/pkg/plugins/Correlation.java b/correlation/src/main/pkg/plugins/Correlation.java index c7040b8..80ba855 100644 --- a/correlation/src/main/pkg/plugins/Correlation.java +++ b/correlation/src/main/pkg/plugins/Correlation.java @@ -99,6 +99,12 @@ public class Correlation extends Panel { this.startTimer(100, 10); comboTypeXActionPerformed(null); comboTypeYActionPerformed(null); + + if (runCount==0){ + if (App.hasArgument("start")) { + buttonStartActionPerformed(null); + } + } } @Override @@ -175,14 +181,7 @@ public class Correlation extends Panel { comboTypeX.setEnabled(state==State.Ready); comboTypeY.setEnabled(state==State.Ready); checkLinear.setEnabled(state==State.Ready); - checkQuadratic.setEnabled(state==State.Ready); - - if ( ((former==null)||(former==State.Initializing)) && (state == State.Ready)){ - if (App.hasArgument("start")) { - buttonStartActionPerformed(null); - } - } - + checkQuadratic.setEnabled(state==State.Ready); } boolean isRunning(){