Changeset 12846 in josm for trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java
- Timestamp:
- 2017-09-13T23:24:50+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java
r12841 r12846 60 60 import org.openstreetmap.josm.io.UploadStrategy; 61 61 import org.openstreetmap.josm.io.UploadStrategySpecification; 62 import org.openstreetmap.josm.spi.preferences.Config; 62 63 import org.openstreetmap.josm.tools.GBC; 63 64 import org.openstreetmap.josm.tools.ImageOverlay; … … 252 253 setMinimumSize(new Dimension(600, 350)); 253 254 254 Main.pref.addPreferenceChangeListener(this);255 Config.getPref().addPreferenceChangeListener(this); 255 256 } 256 257 … … 653 654 654 655 private static String getLastChangesetTagFromHistory(String historyKey, List<String> def) { 655 Collection<String> history = Main.pref.getList(historyKey, def);656 int age = (int) (System.currentTimeMillis() / 1000 - Main.pref.getInt(BasicUploadSettingsPanel.HISTORY_LAST_USED_KEY, 0));656 Collection<String> history = Config.getPref().getList(historyKey, def); 657 int age = (int) (System.currentTimeMillis() / 1000 - Config.getPref().getInt(BasicUploadSettingsPanel.HISTORY_LAST_USED_KEY, 0)); 657 658 if (history != null && age < Main.pref.getLong(BasicUploadSettingsPanel.HISTORY_MAX_AGE_KEY, TimeUnit.HOURS.toMillis(4)) 658 659 && !history.isEmpty()) {
Note:
See TracChangeset
for help on using the changeset viewer.