From: Jim Procter Date: Fri, 5 Feb 2021 17:07:54 +0000 (+0000) Subject: JAL-3814 don’t automatically launch the news browser when the desktop is first opened X-Git-Tag: Release_2_11_1_4~9^2~10 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=dcac7508c650e40ce26902ab81f3fcbf86d709eb;p=jalview.git JAL-3814 don’t automatically launch the news browser when the desktop is first opened --- 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.");