git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
ddb6c7b
)
JAL-4001 Only use acquireDialogQueue and releaseDialogQueue when SplashScreen is...
bug/JAL-4001_fix_About_Jalview_not_appearing
author
Ben Soares
<b.soares@dundee.ac.uk>
Tue, 3 Oct 2023 17:31:08 +0000
(18:31 +0100)
committer
Ben Soares
<b.soares@dundee.ac.uk>
Tue, 3 Oct 2023 17:31:08 +0000
(18:31 +0100)
src/jalview/gui/SplashScreen.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/SplashScreen.java
b/src/jalview/gui/SplashScreen.java
index
ff409e0
..
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
{
@@
-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();
- // jalview.bin.Console.errPrintln("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
{