From: Ben Soares Date: Sat, 17 Jun 2023 21:19:20 +0000 (+0100) Subject: JAL-4001 Check --nousagestats before doing analytics in headless mode X-Git-Tag: Release_2_11_4_0~260^2~17 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a6f0678764ea06034460236c7a811bbfcad682aa;p=jalview.git JAL-4001 Check --nousagestats before doing analytics in headless mode --- 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); }