提交 ce9ed056 编写于 作者: A anthony

6304277: PIT: Adding a TrayIcon closes a SplashScreen on Solaris but not on Win32

Summary: The Window.closeSplashScreen() method now verified the boolean flag isTrayIconWindow, and returns if it is true.
Reviewed-by: son, dcherepanov
上级 c889ff5a
......@@ -826,7 +826,10 @@ public class Window extends Container implements Accessible {
static private final AtomicBoolean
beforeFirstWindowShown = new AtomicBoolean(true);
static final void closeSplashScreen() {
final void closeSplashScreen() {
if (isTrayIconWindow) {
return;
}
if (beforeFirstWindowShown.getAndSet(false)) {
SunToolkit.closeSplashScreen();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册