Changeset 18173 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/server/OverpassServerPanel.java
- Timestamp:
- 2021-08-24T02:43:50+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/server/OverpassServerPanel.java
r17162 r18173 42 42 */ 43 43 public final void initFromPreferences() { 44 overpassServer. setPossibleItems(OverpassDownloadReader.OVERPASS_SERVER_HISTORY.get());44 overpassServer.getModel().prefs().load(OverpassDownloadReader.OVERPASS_SERVER_HISTORY); 45 45 overpassServer.setText(OverpassDownloadReader.OVERPASS_SERVER.get()); 46 46 forMultiFetch.setSelected(OverpassDownloadReader.FOR_MULTI_FETCH.get()); … … 52 52 public final void saveToPreferences() { 53 53 OverpassDownloadReader.OVERPASS_SERVER.put(overpassServer.getText()); 54 OverpassDownloadReader.OVERPASS_SERVER_HISTORY.put(overpassServer.getHistory());54 overpassServer.getModel().prefs().save(OverpassDownloadReader.OVERPASS_SERVER_HISTORY); 55 55 OverpassDownloadReader.FOR_MULTI_FETCH.put(forMultiFetch.isSelected()); 56 56 }
Note:
See TracChangeset
for help on using the changeset viewer.