1
0
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:
Federico Fissore 2015-09-17 13:18:35 +02:00
parent c55a9e81ad
commit 57ed2b2416

View File

@ -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() {