JAL-3814 NONEWS property
authorJim Procter <jprocter@issues.jalview.org>
Fri, 5 Feb 2021 17:01:09 +0000 (17:01 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Fri, 5 Feb 2021 17:01:09 +0000 (17:01 +0000)
src/jalview/bin/Cache.java
src/jalview/bin/Jalview.java

index 600d19c..2904fc3 100755 (executable)
@@ -195,6 +195,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 3a238bb..a077f95 100755 (executable)
@@ -375,7 +375,8 @@ public class Jalview
         System.err.println("CMD [-noquestionnaire] executed successfully!");
       }
 
-      if (!aparser.contains("nonews"))
+      if (!aparser.contains("nonews")
+              || Cache.getProperty("NONEWS") == null)
       {
         desktop.checkForNews();
       }