diff --git a/java_console/ui/src/main/java/com/rusefi/ui/engine/EngineSnifferPanel.java b/java_console/ui/src/main/java/com/rusefi/ui/engine/EngineSnifferPanel.java index bee11af310..45ee265f9a 100644 --- a/java_console/ui/src/main/java/com/rusefi/ui/engine/EngineSnifferPanel.java +++ b/java_console/ui/src/main/java/com/rusefi/ui/engine/EngineSnifferPanel.java @@ -221,10 +221,8 @@ public class EngineSnifferPanel { image.setWaveReport(wr, revolutions); } - /** - * this is to fix the UI glitch when images tab shows a tiny square - */ - UiUtils.trueLayout(chartPanel.getParent()); + // Repaint now that we've updated state + SwingUtilities.invokeLater(() -> UiUtils.trueRepaint(imagePanel)); } public JPanel getPanel() { diff --git a/java_console/ui/src/main/java/com/rusefi/ui/engine/UpDownImage.java b/java_console/ui/src/main/java/com/rusefi/ui/engine/UpDownImage.java index 9e333e6a0d..ff75862cff 100644 --- a/java_console/ui/src/main/java/com/rusefi/ui/engine/UpDownImage.java +++ b/java_console/ui/src/main/java/com/rusefi/ui/engine/UpDownImage.java @@ -129,7 +129,6 @@ public class UpDownImage extends JPanel { this.engineReport = wr; propagateDwellIntoSensor(wr); this.revolutions = revolutions; - UiUtils.trueRepaint(this); } private void propagateDwellIntoSensor(EngineReport wr) {