From 706ec5bd94ed2fd76dd61f051ca02af50f77a145 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 12 Feb 2019 10:37:54 +0000 Subject: [PATCH] JAL-3032 default Autosearch to off for JalviewJS --- src/jalview/fts/core/GFTSPanel.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 1.7.10.2