Changeset 2767 in josm for trunk


Ignore:
Timestamp:
2010-01-08T05:17:48+01:00 (11 years ago)
Author:
mjulius
Message:

fixes #4315 - remember the last state of "Close changeset after upload"

File:
1 edited

Legend:

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

    r2711 r2767  
    143143        cbCloseAfterUpload.setToolTipText(tr("Select to close the changeset after the next upload"));
    144144        add(cbCloseAfterUpload, gc);
    145         cbCloseAfterUpload.setSelected(true);
     145        cbCloseAfterUpload.setSelected(Main.pref.getBoolean("upload.changeset.close", true));
    146146        cbCloseAfterUpload.addItemListener(new CloseAfterUploadItemStateListener());
    147147
     
    257257            case ItemEvent.SELECTED:
    258258                firePropertyChange(CLOSE_CHANGESET_AFTER_UPLOAD, false, true);
     259                Main.pref.put("upload.changeset.close", true);
    259260                break;
    260261            case ItemEvent.DESELECTED:
    261262                firePropertyChange(CLOSE_CHANGESET_AFTER_UPLOAD, true, false);
     263                Main.pref.put("upload.changeset.close", false);
    262264                break;
    263265            }
Note: See TracChangeset for help on using the changeset viewer.