Changeset 5882 in josm for trunk/src/org


Ignore:
Timestamp:
2013-04-18T20:51:27+02:00 (12 years ago)
Author:
Don-vip
Message:

fix #8585 - update MOTD when updating Java version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/GettingStarted.java

    r5113 r5882  
    6464
    6565        final private int myVersion = Version.getInstance().getVersion();
     66        final private String myJava = System.getProperty("java.version");
    6667        final private String myLang = LanguageInfo.getWikiLanguagePrefix();
    6768
     
    7576            // Save this to prefs in case JOSM is updated so MOTD can be refreshed
    7677            Main.pref.putInteger("cache.motd.html.version", myVersion);
     78            Main.pref.put("cache.motd.html.lang", myJava);
    7779            Main.pref.put("cache.motd.html.lang", myLang);
    7880            try {
     
    9496            // everytime because of something we can't read.
    9597            return (Main.pref.getInteger("cache.motd.html.version", -999) == myVersion)
     98            && Main.pref.get("cache.motd.html.java").equals(myJava)
    9699            && Main.pref.get("cache.motd.html.lang").equals(myLang);
    97100        }
Note: See TracChangeset for help on using the changeset viewer.