Changeset 3130 in josm for trunk/src/org


Ignore:
Timestamp:
2010-03-13T23:22:23+01:00 (15 years ago)
Author:
bastiK
Message:

fixed #4679 - JOSM no longer finds plugins in /usr/share/josm/plugins

File:
1 edited

Legend:

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

    r3083 r3130  
    185185        getProgressMonitor().setTicksCount(pluginLocations.size() + 2);
    186186        if (canceled)return;
    187         scanLocalPluginRepository(
    188                 getProgressMonitor().createSubTaskMonitor(1, false),
    189                 Main.pref.getPluginsDirectory()
    190         );
    191         getProgressMonitor().worked(1);
    192         if (canceled)return;
     187        for (String location : pluginLocations) {
     188            scanLocalPluginRepository(
     189                    getProgressMonitor().createSubTaskMonitor(1, false),
     190                    new File(location)
     191            );
     192            getProgressMonitor().worked(1);
     193            if (canceled)return;
     194        }
    193195        analyseInProcessPlugins();
    194196        getProgressMonitor().worked(1);
Note: See TracChangeset for help on using the changeset viewer.