Skip to content

Commit

Permalink
Route to the current directory instead of the Downloads folder
Browse files Browse the repository at this point in the history
  • Loading branch information
ChachyDev committed Jun 4, 2021
1 parent ff010f2 commit 2964c1b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ private static File getFile(JFileChooser chooser, String title, String errorMess
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
}
chooser.setDialogTitle(title);
chooser.setCurrentDirectory(new File(System.getProperty("user.home"), "Downloads"));
chooser.setCurrentDirectory(new File("."));

if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {
return chooser.getSelectedFile();
} else {
Expand Down

0 comments on commit 2964c1b

Please sign in to comment.