TS SD integration #1653

This commit is contained in:
rusefi 2020-08-07 21:26:13 -04:00
parent 0b227e6910
commit 8ff7054173
2 changed files with 3 additions and 4 deletions

View File

@ -110,7 +110,7 @@ public class ConnectPanel {
controllerConnector.startAndConnect(autoDetectedPort, new ConnectionStateListener() { controllerConnector.startAndConnect(autoDetectedPort, new ConnectionStateListener() {
public void onConnectionEstablished() { public void onConnectionEstablished() {
SwingUtilities.invokeLater(() -> { SwingUtilities.invokeLater(() -> {
status.setText("Connected to rusEFI"); status.setText("Connected to rusEFI " + autoDetectedPort);
disconnect.setEnabled(true); disconnect.setEnabled(true);
connectionStateListener.onConnectionEstablished(); connectionStateListener.onConnectionEstablished();
}); });

View File

@ -73,8 +73,7 @@ public class SdCardReader {
content.add(topPanel, BorderLayout.NORTH); content.add(topPanel, BorderLayout.NORTH);
JScrollPane fileListScroll = new JScrollPane(fileList, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); content.add(fileList, BorderLayout.CENTER);
content.add(fileListScroll, BorderLayout.CENTER);
content.add(new JLabel("<html>This tab allows direct access to SD card<br/>Please be sure to disconnect Tuner Studio from ECU while downloading files using this tab"), BorderLayout.SOUTH); content.add(new JLabel("<html>This tab allows direct access to SD card<br/>Please be sure to disconnect Tuner Studio from ECU while downloading files using this tab"), BorderLayout.SOUTH);
} }
@ -85,7 +84,7 @@ public class SdCardReader {
} }
public Component getContent() { public Component getContent() {
return content; return new JScrollPane(content, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
} }
private void requestFileList() { private void requestFileList() {