Ignore:
Timestamp:
2014-10-27T14:58:17+01:00 (9 years ago)
Author:
stoecker
Message:

support data: style URL's for icon in plugin list, see #10581

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/ReadRemotePluginInformationTask.java

    r7434 r7654  
    302302        for (PluginInformation pi : availablePlugins) {
    303303            if (pi.icon == null && pi.iconPath != null) {
    304                 pi.icon = new ImageProvider(pi.name+".jar/"+pi.iconPath)
     304                String path = pi.iconPath;
     305                if(!path.startsWith("data:")) {
     306                    path = pi.name+".jar/"+path;
     307                }
     308                pi.icon = new ImageProvider(path)
    305309                                .setArchive(destFile)
    306310                                .setMaxWidth(24)
Note: See TracChangeset for help on using the changeset viewer.