Changeset 15542 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2019-11-25T22:19:58+01:00 (5 years ago)
Author:
Don-vip
Message:

fix #18358 - DownloadDialog should allow plugins the ability to remove a download source they added (patch by taylor.smock)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java

    r15365 r15542  
    341341
    342342    /**
     343     * Remove a download source from the download dialog
     344     *
     345     * @param downloadSource The download source to be removed.
     346     * @return see {@link List#remove}
     347     * @since 15542
     348     */
     349    public static boolean removeDownloadSource(DownloadSource<?> downloadSource) {
     350        if (downloadSources.contains(downloadSource)) {
     351            return downloadSources.remove(downloadSource);
     352        }
     353        return false;
     354    }
     355
     356    /**
    343357     * Refreshes the tile sources.
    344358     * @since 6364
Note: See TracChangeset for help on using the changeset viewer.