From: gmungoc Date: Mon, 18 Mar 2019 14:31:11 +0000 (+0000) Subject: JAL-3141 JAL-3056 backups regime option suppressed in JalviewJS X-Git-Tag: Release_2_11_4_0~45^2~18^2~218 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a414d1d72a2dd50a6e00ce02a2cca533f0d4a12a;p=jalview.git JAL-3141 JAL-3056 backups regime option suppressed in JalviewJS --- 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,