6304277: PIT: Adding a TrayIcon closes a SplashScreen on Solaris but not on Win32
The Window.closeSplashScreen() method now verified the boolean flag isTrayIconWindow, and returns if it is true. Reviewed-by: son, dcherepanov
This commit is contained in:
parent
80a01c0796
commit
8813269b78
@ -826,7 +826,10 @@ public class Window extends Container implements Accessible {
|
|||||||
static private final AtomicBoolean
|
static private final AtomicBoolean
|
||||||
beforeFirstWindowShown = new AtomicBoolean(true);
|
beforeFirstWindowShown = new AtomicBoolean(true);
|
||||||
|
|
||||||
static final void closeSplashScreen() {
|
final void closeSplashScreen() {
|
||||||
|
if (isTrayIconWindow) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (beforeFirstWindowShown.getAndSet(false)) {
|
if (beforeFirstWindowShown.getAndSet(false)) {
|
||||||
SunToolkit.closeSplashScreen();
|
SunToolkit.closeSplashScreen();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user