From: Jim Procter Date: Fri, 5 Feb 2021 17:07:54 +0000 (+0000) Subject: JAL-3746 JAL-3814 don’t automatically launch the news browser when the desktop is... X-Git-Tag: Release_2_11_2_1~33 X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=commitdiff_plain;h=499cb309e8622312059ad73729e41c9838956f06 JAL-3746 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 3dc51ce..fb7d7c5 100644 --- a/src/jalview/gui/BlogReader.java +++ b/src/jalview/gui/BlogReader.java @@ -273,13 +273,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) + { - Console.debug("Will show jalview news automatically"); - showNews(); + Console.debug("Will show jalview news automatically"); + showNews(); + } } Console.debug("Completed construction of reader.");