From ec606034401293ba2700c18bdd8b5c62000f7810 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Fri, 17 Jun 2022 17:10:52 +0100 Subject: [PATCH] JAL-3027 Avoid FlatLAF Desktop class is JalviewJS --- src/jalview/jbgui/APQHandlers.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/jalview/jbgui/APQHandlers.java b/src/jalview/jbgui/APQHandlers.java index 00ce170..5e04b14 100644 --- 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); }); -- 1.7.10.2