Ignore:
Timestamp:
2017-09-13T23:24:50+02:00 (7 years ago)
Author:
bastiK
Message:

see #15229 - use Config.getPref() wherever possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/widgets/FileChooserManager.java

    r9991 r12846  
    1515import org.openstreetmap.josm.actions.SaveActionBase;
    1616import org.openstreetmap.josm.data.preferences.BooleanProperty;
     17import org.openstreetmap.josm.spi.preferences.Config;
    1718
    1819/**
     
    9091        this.open = open;
    9192        this.lastDirProperty = lastDirProperty == null || lastDirProperty.isEmpty() ? "lastDirectory" : lastDirProperty;
    92         this.curDir = Main.pref.get(this.lastDirProperty).isEmpty() ?
     93        this.curDir = Config.getPref().get(this.lastDirProperty).isEmpty() ?
    9394                defaultDir == null || defaultDir.isEmpty() ? "." : defaultDir
    94                 : Main.pref.get(this.lastDirProperty);
     95                : Config.getPref().get(this.lastDirProperty);
    9596    }
    9697
     
    345346
    346347        if (!fc.getCurrentDirectory().getAbsolutePath().equals(curDir)) {
    347             Main.pref.put(lastDirProperty, fc.getCurrentDirectory().getAbsolutePath());
     348            Config.getPref().put(lastDirProperty, fc.getCurrentDirectory().getAbsolutePath());
    348349        }
    349350
Note: See TracChangeset for help on using the changeset viewer.