JAL-3772 Fix the logic of prompt to save URL loaded alignments preference
authorBen Soares <b.soares@dundee.ac.uk>
Thu, 12 Oct 2023 15:01:12 +0000 (16:01 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Thu, 12 Oct 2023 15:01:12 +0000 (16:01 +0100)
src/jalview/io/FileLoader.java

index de88ce9..b16c37f 100755 (executable)
@@ -688,8 +688,8 @@ public class FileLoader implements Runnable
     if (avp == null)
       return;
     boolean upToDate = !protocol.isDynamic();
-    if (protocol.isUrl()
-            && Cache.getDefault(PROMPT_SAVE_UNCHANGED_URL_ALIGNMENTS, true))
+    if (protocol.isUrl() && !Cache
+            .getDefault(PROMPT_SAVE_UNCHANGED_URL_ALIGNMENTS, true))
     {
       upToDate = true;
     }