From 4a1efe38da27e8ca14180e2ab519116d9fa3b127 Mon Sep 17 00:00:00 2001 From: kifir Date: Fri, 30 Aug 2024 15:45:08 +0300 Subject: [PATCH] attempt to fix displaying of logo on the right side of frame --- .../main/java/com/rusefi/ui/basic/BasicStartupFrame.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/java_console/ui/src/main/java/com/rusefi/ui/basic/BasicStartupFrame.java b/java_console/ui/src/main/java/com/rusefi/ui/basic/BasicStartupFrame.java index e0349c89fa..ef930f611b 100644 --- a/java_console/ui/src/main/java/com/rusefi/ui/basic/BasicStartupFrame.java +++ b/java_console/ui/src/main/java/com/rusefi/ui/basic/BasicStartupFrame.java @@ -106,11 +106,17 @@ public class BasicStartupFrame { private void updateStatus(final String niceStatus) { statusMessage.setText(niceStatus); + // I'm not sure why it works, but it looks like the following frame packing helps to avoid displaying of logo on + // the right side of frame + packFrame(); } private void onHardwareUpdated(final AvailableHardware currentHardware) { status.stop(); hideStatusMessage(); + // I'm not sure hat the following frame packing is really necessary, but I'm adding it just in case if frame was + // not packed in updateStatus method + packFrame(); final List ecuPorts = currentHardware.getKnownPorts(SerialPortScanner.SerialPortType.EcuWithOpenblt); final List bootloaderPorts = currentHardware.getKnownPorts(SerialPortScanner.SerialPortType.OpenBlt);