From: gmungoc Date: Tue, 12 Feb 2019 10:37:54 +0000 (+0000) Subject: JAL-3032 default Autosearch to off for JalviewJS X-Git-Tag: Release_2_11_4_0~45^2~18^2~244 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=706ec5bd94ed2fd76dd61f051ca02af50f77a145;p=jalview.git JAL-3032 default Autosearch to off for JalviewJS --- diff --git a/src/jalview/fts/core/GFTSPanel.java b/src/jalview/fts/core/GFTSPanel.java index 4771601..abda7ac 100644 --- a/src/jalview/fts/core/GFTSPanel.java +++ b/src/jalview/fts/core/GFTSPanel.java @@ -21,6 +21,7 @@ package jalview.fts.core; +import jalview.bin.Cache; import jalview.fts.api.FTSDataColumnI; import jalview.fts.api.GFTSPanelI; import jalview.fts.core.FTSDataColumnPreferences.PreferenceSource; @@ -30,6 +31,7 @@ import jalview.gui.JvSwingUtils; import jalview.gui.SequenceFetcher; import jalview.io.cache.JvCacheableInputBox; import jalview.util.MessageManager; +import jalview.util.Platform; import java.awt.BorderLayout; import java.awt.CardLayout; @@ -359,8 +361,8 @@ public abstract class GFTSPanel extends JPanel implements GFTSPanelI btn_autosearch.setText(MessageManager.getString("option.autosearch")); btn_autosearch.setToolTipText( MessageManager.getString("option.enable_disable_autosearch")); - btn_autosearch.setSelected( - jalview.bin.Cache.getDefault(getAutosearchPreference(), true)); + btn_autosearch.setSelected(Platform.isJS() ? false : + Cache.getDefault(getAutosearchPreference(), true)); btn_autosearch.addActionListener(new java.awt.event.ActionListener() { @Override