Ignore:
Timestamp:
2012-02-08T19:31:02+01:00 (13 years ago)
Author:
roland
Message:

Enabled user setting for source URL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mirrored_download/src/mirrored_download/UrlSelectionDialog.java

    r27696 r27729  
    104104    cbSelectUrl.setEditable(true);
    105105
     106    String preferredUrl = Main.pref.get("plugin.mirrored_download.preferred-url");
     107    if (preferredUrl != null && !"".equals(preferredUrl))
     108      cbSelectUrl.addItem(preferredUrl);
     109
    106110    for (String url: getURLs()) {
    107111      cbSelectUrl.addItem(url);
     
    153157    public void actionPerformed(ActionEvent e) {
    154158      MirroredDownloadPlugin.setDownloadUrl(cbSelectUrl.getSelectedItem().toString());
     159      Main.pref.put("plugin.mirrored_download.preferred-url",
     160          cbSelectUrl.getSelectedItem().toString());
    155161    }
    156162
Note: See TracChangeset for help on using the changeset viewer.