From: Ben Soares Date: Fri, 17 Jun 2022 16:10:52 +0000 (+0100) Subject: JAL-3027 Avoid FlatLAF Desktop class is JalviewJS X-Git-Tag: Release_2_11_2_6~45 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ec606034401293ba2700c18bdd8b5c62000f7810;p=jalview.git JAL-3027 Avoid FlatLAF Desktop class is JalviewJS --- 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); });