From a6f0678764ea06034460236c7a811bbfcad682aa Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Sat, 17 Jun 2023 22:19:20 +0100 Subject: [PATCH] JAL-4001 Check --nousagestats before doing analytics in headless mode --- src/jalview/bin/Jalview.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index 1f86926..8f467a4 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -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); } -- 1.7.10.2