Changeset 1562 in josm for trunk/src/org
- Timestamp:
- 2009-04-28T19:37:14+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/GettingStarted.java
r1512 r1562 61 61 62 62 final private int myVersion = AboutAction.getVersionNumber(); 63 final private String myLang = Main.getLanguageCodeU(); 63 64 64 65 /** … … 83 84 // Save this to prefs in case JOSM is updated so MOTD can be refreshed 84 85 Main.pref.putInteger("cache.motd.html.version", myVersion); 86 Main.pref.put("cache.motd.html.lang", myLang); 85 87 86 88 return motd.getBytes(); … … 96 98 // 2. Cannot be written (e.g. while developing). Obviously we don't want to update 97 99 // everytime because of something we can't read. 98 return Main.pref.getInteger("cache.motd.html.version", myVersion) == myVersion; 100 return (Main.pref.getInteger("cache.motd.html.version", myVersion) == myVersion) 101 && Main.pref.get("cache.motd.html.lang").equals(myLang); 99 102 } 100 103 }
Note:
See TracChangeset
for help on using the changeset viewer.