Skip to content

Commit 57ed2b2

Browse files
author
Federico Fissore
committed
Updating splashscreen text ONLY if visible. Fixes #3808
1 parent c55a9e8 commit 57ed2b2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/src/cc/arduino/view/SplashScreenHelper.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ public void splashText(String str) {
7979
splashGraphics.drawString(str, (int) splashTextArea.getX() + 10, (int) splashTextArea.getY() + (30 - metrics.getHeight()) + 4);
8080

8181
// make sure it's displayed
82-
splash.update();
82+
synchronized (SplashScreen.class) {
83+
if (splash.isVisible()) {
84+
splash.update();
85+
}
86+
}
8387
}
8488

8589
public void close() {

0 commit comments

Comments
 (0)