From dcac7508c650e40ce26902ab81f3fcbf86d709eb Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 5 Feb 2021 17:07:54 +0000 Subject: [PATCH] =?utf8?q?JAL-3814=20don=E2=80=99t=20automatically=20launch=20?= =?utf8?q?the=20news=20browser=20when=20the=20desktop=20is=20first=20opened?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/jalview/gui/BlogReader.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/jalview/gui/BlogReader.java b/src/jalview/gui/BlogReader.java index c43c699..1807764 100644 --- a/src/jalview/gui/BlogReader.java +++ b/src/jalview/gui/BlogReader.java @@ -272,13 +272,16 @@ public class BlogReader extends JPanel initItems(chan); updating = false; - boolean setvisible = checkForNew(chan, true); - - if (setvisible) + if (!Cache.getDefault("NONEWS", false)) { + boolean setvisible = checkForNew(chan, true); + + if (setvisible) + { - Cache.log.debug("Will show jalview news automatically"); - showNews(); + Cache.log.debug("Will show jalview news automatically"); + showNews(); + } } Cache.log.debug("Completed construction of reader."); -- 1.7.10.2