_channelModel = new ChannelListModel();
// Construct our jalview news channel
Channel chan = new Channel();
- chan.setURL(
- Cache.getDefault("JALVIEW_NEWS_RSS",
- Cache.getDefault("www.jalview.org",
- "https://www.jalview.org")
- + "/feeds/desktop/rss"));
+ chan.setURL(Cache.getDefault("JALVIEW_NEWS_RSS",
+ Cache.getDefault("www.jalview.org", "https://www.jalview.org")
+ + "/feeds/desktop/rss"));
loadLastM();
_channelModel.addChannel(chan);
updating = true;
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.");
String formattedDate = Cache.setDateProperty(
"JALVIEW_NEWS_RSS_LASTMODIFIED", lastread.getTime());
BlogReader me = new BlogReader();
- System.out.println("Set last date to " + formattedDate);
+ jalview.bin.Console.outPrintln("Set last date to " + formattedDate);
if (me.isNewsNew())
{
Console.debug("There is news to read.");