JAL-4001 Check --nousagestats before doing analytics in headless mode
authorBen Soares <b.soares@dundee.ac.uk>
Sat, 17 Jun 2023 21:19:20 +0000 (22:19 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Sat, 17 Jun 2023 21:19:20 +0000 (22:19 +0100)
src/jalview/bin/Jalview.java

index 1f86926..8f467a4 100755 (executable)
@@ -824,7 +824,8 @@ public class Jalview
         else
         {
           // record usage stats if in headless mode
-          if (Cache.getDefault("USAGESTATS", false))
+          if (Cache.getDefault("USAGESTATS", false)
+                  && !argparser.getBoolean(Arg.NOUSAGESTATS))
           {
             Cache.initGoogleTracker(headlessArg);
           }