* Save Backups settings
*/
Cache.applicationProperties.setProperty(BackupFiles.ENABLED,
- Boolean.toString(enableBackupFiles.isSelected()));
- int preset = getComboIntStringKey(backupfilesPresetsCombo);
- Cache.applicationProperties.setProperty(BackupFiles.NS + "_PRESET", Integer.toString(preset));
-
- if (preset == BackupFilesPresetEntry.BACKUPFILESSCHEMECUSTOM)
+ Platform.isJS() ? Boolean.FALSE.toString()
+ : Boolean.toString(enableBackupFiles.isSelected()));
+ if (!Platform.isJS())
{
- BackupFilesPresetEntry customBFPE = getBackupfilesCurrentEntry();
- BackupFilesPresetEntry.backupfilesPresetEntriesValues.put(
- BackupFilesPresetEntry.BACKUPFILESSCHEMECUSTOM, customBFPE);
- Cache.applicationProperties
- .setProperty(BackupFilesPresetEntry.CUSTOMCONFIG,
- customBFPE.toString());
- }
+ int preset = getComboIntStringKey(backupfilesPresetsCombo);
+ Cache.applicationProperties.setProperty(BackupFiles.NS + "_PRESET",
+ Integer.toString(preset));
- BackupFilesPresetEntry savedBFPE = BackupFilesPresetEntry.backupfilesPresetEntriesValues
- .get(preset);
- Cache.applicationProperties.setProperty(
- BackupFilesPresetEntry.SAVEDCONFIG, savedBFPE.toString());
+ if (preset == BackupFilesPresetEntry.BACKUPFILESSCHEMECUSTOM)
+ {
+ BackupFilesPresetEntry customBFPE = getBackupfilesCurrentEntry();
+ BackupFilesPresetEntry.backupfilesPresetEntriesValues.put(
+ BackupFilesPresetEntry.BACKUPFILESSCHEMECUSTOM, customBFPE);
+ Cache.applicationProperties.setProperty(
+ BackupFilesPresetEntry.CUSTOMCONFIG, customBFPE.toString());
+ }
+
+ BackupFilesPresetEntry savedBFPE = BackupFilesPresetEntry.backupfilesPresetEntriesValues
+ .get(preset);
+ Cache.applicationProperties.setProperty(
+ BackupFilesPresetEntry.SAVEDCONFIG, savedBFPE.toString());
+ }
Cache.saveProperties();
Desktop.instance.doConfigureStructurePrefs();