now we pack frame before it is shown, not only when hardware is updated

This commit is contained in:
kifir 2024-08-27 15:18:05 +03:00 committed by rusefillc
parent 3a0ac40496
commit 652570babe
1 changed files with 1 additions and 1 deletions

View File

@ -90,13 +90,13 @@ public class BasicStartupFrame {
if (ConnectionAndMeta.isDefaultWhitelabel(whiteLabel))
panel.add(LogoHelper.createUrlLabel());
frame.getFrame().pack();
frame.showFrame(panel, false);
UiUtils.centerWindow(frame.getFrame());
}
private void onHardwareUpdated(final AvailableHardware currentHardware) {
status.stop();
frame.getFrame().pack();
final List<SerialPortScanner.PortResult> ecuPorts = currentHardware.getKnownPorts(SerialPortScanner.SerialPortType.EcuWithOpenblt);
final List<SerialPortScanner.PortResult> bootloaderPorts = currentHardware.getKnownPorts(SerialPortScanner.SerialPortType.OpenBlt);