mirror of https://github.com/rusefi/rusefi.git
console to show binary file date timestamp #6515
only: reducing confusion one byte at a time
This commit is contained in:
parent
84ca436052
commit
f56249f116
|
@ -69,7 +69,7 @@ public class StartupFrame {
|
||||||
private final JLabel noPortsMessage = new JLabel("Scanning ports...");
|
private final JLabel noPortsMessage = new JLabel("Scanning ports...");
|
||||||
|
|
||||||
public StartupFrame() {
|
public StartupFrame() {
|
||||||
String title = "rusEFI console version " + Launcher.CONSOLE_VERSION;
|
String title = "rusEFI console " + Launcher.CONSOLE_VERSION;
|
||||||
log.info(title);
|
log.info(title);
|
||||||
noPortsMessage.setForeground(Color.red);
|
noPortsMessage.setForeground(Color.red);
|
||||||
frame = FrameHelper.createFrame(title).getFrame();
|
frame = FrameHelper.createFrame(title).getFrame();
|
||||||
|
@ -208,7 +208,7 @@ public class StartupFrame {
|
||||||
if (logo != null)
|
if (logo != null)
|
||||||
rightPanel.add(logo);
|
rightPanel.add(logo);
|
||||||
rightPanel.add(LogoHelper.createUrlLabel());
|
rightPanel.add(LogoHelper.createUrlLabel());
|
||||||
rightPanel.add(new JLabel("Version " + Launcher.CONSOLE_VERSION));
|
rightPanel.add(new JLabel("Console " + Launcher.CONSOLE_VERSION));
|
||||||
|
|
||||||
JPanel content = new JPanel(new BorderLayout());
|
JPanel content = new JPanel(new BorderLayout());
|
||||||
content.add(leftPanel, BorderLayout.WEST);
|
content.add(leftPanel, BorderLayout.WEST);
|
||||||
|
@ -229,7 +229,7 @@ public class StartupFrame {
|
||||||
|
|
||||||
private static @NotNull JLabel binaryModificationControl() {
|
private static @NotNull JLabel binaryModificationControl() {
|
||||||
long binaryModificationTimestamp = MaintenanceUtil.getBinaryModificationTimestamp();
|
long binaryModificationTimestamp = MaintenanceUtil.getBinaryModificationTimestamp();
|
||||||
String fileTimestampText = binaryModificationTimestamp == 0 ? "firmware file not found" : new Date(binaryModificationTimestamp).toString();
|
String fileTimestampText = binaryModificationTimestamp == 0 ? "firmware file not found" : ("Files " + new Date(binaryModificationTimestamp).toString());
|
||||||
return new JLabel(fileTimestampText);
|
return new JLabel(fileTimestampText);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue