attempt to fix displaying of logo on the right side of frame

This commit is contained in:
kifir 2024-08-30 15:45:08 +03:00 committed by rusefillc
parent f0381a3f7f
commit 4a1efe38da
1 changed files with 6 additions and 0 deletions

View File

@ -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<SerialPortScanner.PortResult> ecuPorts = currentHardware.getKnownPorts(SerialPortScanner.SerialPortType.EcuWithOpenblt);
final List<SerialPortScanner.PortResult> bootloaderPorts = currentHardware.getKnownPorts(SerialPortScanner.SerialPortType.OpenBlt);