mirror of https://github.com/rusefi/rusefi-1.git
fix console F7 flashing blinking fix #3852
This commit is contained in:
parent
ed162f83ba
commit
c0aacc3921
|
@ -6,7 +6,7 @@ import java.net.URL;
|
||||||
import java.util.concurrent.atomic.AtomicReference;
|
import java.util.concurrent.atomic.AtomicReference;
|
||||||
|
|
||||||
public class rusEFIVersion {
|
public class rusEFIVersion {
|
||||||
public static final int CONSOLE_VERSION = 20220213;
|
public static final int CONSOLE_VERSION = 20220215;
|
||||||
public static AtomicReference<String> firmwareVersion = new AtomicReference<>("N/A");
|
public static AtomicReference<String> firmwareVersion = new AtomicReference<>("N/A");
|
||||||
|
|
||||||
public static long classBuildTimeMillis() {
|
public static long classBuildTimeMillis() {
|
||||||
|
|
|
@ -188,11 +188,15 @@ public class StartupFrame {
|
||||||
JPanel rightPanel = new JPanel(new VerticalFlowLayout());
|
JPanel rightPanel = new JPanel(new VerticalFlowLayout());
|
||||||
|
|
||||||
if (Autoupdate.readBundleFullNameNotNull().contains("proteus_f7")) {
|
if (Autoupdate.readBundleFullNameNotNull().contains("proteus_f7")) {
|
||||||
URLLabel urlLabel = new URLLabel("WARNING: Proteus F7", "https://github.com/rusefi/rusefi/wiki/F7-requires-full-erase");
|
String text = "WARNING: Proteus F7";
|
||||||
|
URLLabel urlLabel = new URLLabel(text, "https://github.com/rusefi/rusefi/wiki/F7-requires-full-erase");
|
||||||
|
Color originalColor = urlLabel.getForeground();
|
||||||
new Timer(500, new ActionListener() {
|
new Timer(500, new ActionListener() {
|
||||||
|
int counter;
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
urlLabel.setVisible(!urlLabel.isVisible());
|
// URL color is hard-coded, let's blink isUnderlined attribute as second best option
|
||||||
|
urlLabel.setText(text, counter++ % 2 == 0);
|
||||||
}
|
}
|
||||||
}).start();
|
}).start();
|
||||||
rightPanel.add(urlLabel);
|
rightPanel.add(urlLabel);
|
||||||
|
|
Loading…
Reference in New Issue