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
(parent:
9adf281
)
JAL-3027 Avoid FlatLAF Desktop class is JalviewJS
author
Ben Soares
<bsoares@dundee.ac.uk>
Fri, 17 Jun 2022 16:10:52 +0000
(17:10 +0100)
committer
Ben Soares
<bsoares@dundee.ac.uk>
Fri, 17 Jun 2022 16:10:52 +0000
(17:10 +0100)
src/jalview/jbgui/APQHandlers.java
patch
|
blob
|
history
diff --git
a/src/jalview/jbgui/APQHandlers.java
b/src/jalview/jbgui/APQHandlers.java
index
00ce170
..
5e04b14
100644
(file)
--- a/
src/jalview/jbgui/APQHandlers.java
+++ b/
src/jalview/jbgui/APQHandlers.java
@@
-26,11
+26,16
@@
import javax.swing.JOptionPane;
import com.formdev.flatlaf.extras.FlatDesktop;
import jalview.util.MessageManager;
+import jalview.util.Platform;
public class APQHandlers
{
public static boolean setAPQHandlers(GDesktop desktop)
{
+ if (Platform.isJS())
+ {
+ return false;
+ }
FlatDesktop.setAboutHandler(() -> {
desktop.aboutMenuItem_actionPerformed(null);
});