Changeset 19258 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2024-11-15T10:02:07+01:00 (29 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/download/OSMDownloadSource.java
r19106 r19258 197 197 private final JPanel downloadSourcesPanel; 198 198 199 private boolean inRestore = false; 200 199 201 private final ChangeListener checkboxChangeListener; 200 202 … … 256 258 @Override 257 259 public void rememberSettings() { 258 DOWNLOAD_SOURCES.forEach(type -> type.getBooleanProperty().put(type.getCheckBox().isSelected())); 260 if (!inRestore) 261 DOWNLOAD_SOURCES.forEach(type -> type.getBooleanProperty().put(type.getCheckBox().isSelected())); 259 262 } 260 263 261 264 @Override 262 265 public void restoreSettings() { 266 inRestore = true; 263 267 updateSources(); 264 268 DOWNLOAD_SOURCES.forEach(type -> type.getCheckBox().setSelected(type.isEnabled())); 269 inRestore = false; 265 270 } 266 271
Note:
See TracChangeset
for help on using the changeset viewer.