mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-17 06:52:18 +01:00
Updating splashscreen text ONLY if visible. Fixes #3808
This commit is contained in:
parent
c55a9e81ad
commit
57ed2b2416
@ -79,7 +79,11 @@ public class SplashScreenHelper {
|
||||
splashGraphics.drawString(str, (int) splashTextArea.getX() + 10, (int) splashTextArea.getY() + (30 - metrics.getHeight()) + 4);
|
||||
|
||||
// make sure it's displayed
|
||||
splash.update();
|
||||
synchronized (SplashScreen.class) {
|
||||
if (splash.isVisible()) {
|
||||
splash.update();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void close() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user