git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' into patch/JAL-4110_stdout_for_tests
[jalview.git]
/
src
/
jalview
/
gui
/
SplashScreen.java
diff --git
a/src/jalview/gui/SplashScreen.java
b/src/jalview/gui/SplashScreen.java
index
0b7af0d
..
52c1d18
100755
(executable)
--- a/
src/jalview/gui/SplashScreen.java
+++ b/
src/jalview/gui/SplashScreen.java
@@
-113,8
+113,11
@@
public class SplashScreen extends JPanel
*/
public SplashScreen(boolean isTransient)
{
*/
public SplashScreen(boolean isTransient)
{
- Desktop.instance.acquireDialogQueue();
this.transientDialog = isTransient;
this.transientDialog = isTransient;
+ if (this.transientDialog)
+ {
+ Desktop.instance.acquireDialogQueue();
+ }
if (Platform.isJS()) // BH 2019
{
if (Platform.isJS()) // BH 2019
{
@@
-172,7
+175,7
@@
public class SplashScreen extends JPanel
}
if (mt.isErrorAny())
{
}
if (mt.isErrorAny())
{
- System.err.println("Error when loading images!");
+ jalview.bin.Console.errPrintln("Error when loading images!");
}
} while (!mt.checkAll());
Desktop.instance.setIconImages(ChannelProperties.getIconList());
}
} while (!mt.checkAll());
Desktop.instance.setIconImages(ChannelProperties.getIconList());
@@
-228,7
+231,8
@@
public class SplashScreen extends JPanel
protected boolean refreshText()
{
String newtext = Desktop.instance.getAboutMessage();
protected boolean refreshText()
{
String newtext = Desktop.instance.getAboutMessage();
- // System.err.println("Text found: \n"+newtext+"\nEnd of newtext.");
+ // jalview.bin.Console.errPrintln("Text found: \n"+newtext+"\nEnd of
+ // newtext.");
if (oldTextLength != newtext.length())
{
iframe.setVisible(false);
if (oldTextLength != newtext.length())
{
iframe.setVisible(false);
@@
-324,7
+328,6
@@
public class SplashScreen extends JPanel
}
closeSplash();
}
closeSplash();
- Desktop.instance.releaseDialogQueue();
}
/**
}
/**
@@
-332,6
+335,10
@@
public class SplashScreen extends JPanel
*/
public void closeSplash()
{
*/
public void closeSplash()
{
+ if (this.transientDialog)
+ {
+ Desktop.instance.releaseDialogQueue();
+ }
try
{
try
{