JAL-3141 JAL-3056 backups regime option suppressed in JalviewJS
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 18 Mar 2019 14:31:11 +0000 (14:31 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 18 Mar 2019 14:31:11 +0000 (14:31 +0000)
src/jalview/jbgui/GPreferences.java

index cc95723..361ba71 100755 (executable)
@@ -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,