Skip to content

Commit 0b67fd6

Browse files
[FIX] Current Directory in File chooser
1 parent 29a62b6 commit 0b67fd6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mode/src/processing/mode/android/SDKDownloader.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,7 @@ private void createInitLayout(SDKUrlHolder downloadUrls) {
696696
@Override
697697
public void actionPerformed(ActionEvent e) {
698698
JFileChooser fc = new JFileChooser();
699+
fc.setCurrentDirectory(processing.app.Base.getSketchbookFolder());
699700
fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
700701
fc.showOpenDialog(SDKDownloader.super.rootPane); //To put it on top of the modalDialog
701702
if(fc.getSelectedFile()!=null) locationLabel.setText(fc.getSelectedFile().getAbsolutePath());

0 commit comments

Comments
 (0)