JAL-3141 Disabled the 'Include Backup Files' checkbox on file loader dialog when...
authorBen Soares <bsoares@dundee.ac.uk>
Wed, 20 Mar 2019 16:04:45 +0000 (16:04 +0000)
committerBen Soares <bsoares@dundee.ac.uk>
Wed, 20 Mar 2019 16:04:45 +0000 (16:04 +0000)
src/jalview/gui/Desktop.java

index 5071918..1c87fd0 100644 (file)
@@ -1087,7 +1087,7 @@ public class Desktop extends jalview.jbgui.GDesktop
   {
     String fileFormat = Cache.getProperty("DEFAULT_FILE_FORMAT");
     JalviewFileChooser chooser = JalviewFileChooser
-            .forRead(Cache.getProperty("LAST_DIRECTORY"), fileFormat, true);
+            .forRead(Cache.getProperty("LAST_DIRECTORY"), fileFormat, BackupFiles.getEnabled());
 
     chooser.setFileView(new JalviewFileView());
     chooser.setDialogTitle(
@@ -1714,7 +1714,7 @@ public class Desktop extends jalview.jbgui.GDesktop
         "Jalview Project (old)" };
     JalviewFileChooser chooser = new JalviewFileChooser(
             Cache.getProperty("LAST_DIRECTORY"), suffix, desc,
-            "Jalview Project", true, true); // last two booleans: allFiles,
+            "Jalview Project", true, BackupFiles.getEnabled()); // last two booleans: allFiles,
                                             // allowBackupFiles
     chooser.setFileView(new JalviewFileView());
     chooser.setDialogTitle(MessageManager.getString("label.restore_state"));