From a414d1d72a2dd50a6e00ce02a2cca533f0d4a12a Mon Sep 17 00:00:00 2001 From: gmungoc Date: Mon, 18 Mar 2019 14:31:11 +0000 Subject: [PATCH] JAL-3141 JAL-3056 backups regime option suppressed in JalviewJS --- src/jalview/jbgui/GPreferences.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/jalview/jbgui/GPreferences.java b/src/jalview/jbgui/GPreferences.java index cc95723..361ba71 100755 --- a/src/jalview/jbgui/GPreferences.java +++ b/src/jalview/jbgui/GPreferences.java @@ -373,8 +373,11 @@ public class GPreferences extends JPanel tabbedPane.add(initConnectionsTab(), MessageManager.getString("label.connections")); - tabbedPane.add(initBackupsTab(), - MessageManager.getString("label.backups")); + if (!Platform.isJS()) + { + tabbedPane.add(initBackupsTab(), + MessageManager.getString("label.backups")); + } tabbedPane.add(initLinksTab(), MessageManager.getString("label.urllinks")); @@ -1749,7 +1752,7 @@ public class GPreferences extends JPanel protected void loadLastSavedBackupsOptions() { enableBackupFiles - .setSelected(Cache.getDefault(BackupFiles.ENABLED, true)); + .setSelected(Cache.getDefault(BackupFiles.ENABLED, !Platform.isJS())); setComboIntStringKey(backupfilesPresetsCombo, Cache.getDefault(BackupFiles.NS + "_PRESET", 1)); suffixTemplate.setText(Cache.getDefault(BackupFiles.SUFFIX, -- 1.7.10.2