JAL-3746 JAL-3814 NONEWS property
authorJim Procter <jprocter@issues.jalview.org>
Fri, 5 Feb 2021 17:01:09 +0000 (17:01 +0000)
committerJim Procter <j.procter@dundee.ac.uk>
Fri, 4 Mar 2022 16:04:10 +0000 (16:04 +0000)
src/jalview/bin/Cache.java
src/jalview/bin/Jalview.java

index 4d1a453..adfd206 100755 (executable)
@@ -199,6 +199,7 @@ import jalview.ws.sifts.SiftsSettings;
  * <li>ID_ORG_HOSTURL location of jalview service providing identifiers.org urls
  * </li>
  * 
+ * <li>NONEWS - when set disables Jalview News from automatically appearing</li>
  * </ul>
  * Deprecated settings:
  * <ul>
index 4c018fb..d5eefe2 100755 (executable)
@@ -475,7 +475,8 @@ public class Jalview
                   .println("CMD [-noquestionnaire] executed successfully!");
         }
 
-        if (!aparser.contains("nonews"))
+        if (!aparser.contains("nonews")
+                || Cache.getProperty("NONEWS") == null)
         {
           desktop.checkForNews();
         }