Skip to content

Commit 494d4bf

Browse files
committed
Check for updated splashimage only if SplashScreen is active
1 parent eb20b1b commit 494d4bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ public SplashScreenHelper(SplashScreen splash) {
6161
if (splash != null) {
6262
Toolkit tk = Toolkit.getDefaultToolkit();
6363
desktopHints = (Map) tk.getDesktopProperty("awt.font.desktophints");
64+
File image = UpdateCheck.getUpdatedSplashImageFile();
65+
if (image != null) {
66+
splashImage(image);
67+
}
6468
} else {
6569
desktopHints = null;
6670
}
67-
File image = UpdateCheck.getUpdatedSplashImageFile();
68-
if (image != null) {
69-
splashImage(image);
70-
}
7171
}
7272

7373
public void splashText(String text) {

0 commit comments

Comments
 (0)