Ignore:
Timestamp:
2009-12-10T19:25:38+01:00 (14 years ago)
Author:
bastiK
Message:

geoimage: add thumbnail caching (fixes #4116, see #4101)

File:
1 edited

Legend:

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

    r2512 r2606  
    5555     */
    5656    public CacheFiles(String ident) {
    57         String pref = Main.pref.getPluginsDirFile().getPath();
     57        this(ident, true);
     58    }
     59   
     60    public CacheFiles(String ident, boolean isPlugin) {
     61        String pref = isPlugin ? Main.pref.getPluginsDirFile().getPath() : Main.pref.getPreferencesDir();
     62       
    5863        boolean dir_writeable;
    5964        this.ident = ident;
Note: See TracChangeset for help on using the changeset viewer.