JAL-3027 Avoid FlatLAF Desktop class is JalviewJS
authorBen Soares <bsoares@dundee.ac.uk>
Fri, 17 Jun 2022 16:10:52 +0000 (17:10 +0100)
committerBen Soares <bsoares@dundee.ac.uk>
Fri, 17 Jun 2022 16:10:52 +0000 (17:10 +0100)
src/jalview/jbgui/APQHandlers.java

index 00ce170..5e04b14 100644 (file)
@@ -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);
     });