Skip to content

Commit

Permalink
Default to program files
Browse files Browse the repository at this point in the history
  • Loading branch information
Techjar authored Jan 24, 2021
1 parent 6b356b9 commit 8d05bd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion installer/Installer.java
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,8 @@ private String checkForJava14(String path) {
JFileChooser fileChooser = new JFileChooser();
fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
fileChooser.setFileHidingEnabled(false);
fileChooser.setCurrentDirectory(new File(System.getProperty("java.home")));
if (isWindows)
fileChooser.setCurrentDirectory(new File(System.getenv("ProgramFiles")));
fileChooser.setFileFilter(new FileFilter() {
@Override
public boolean accept(File f) {
Expand Down

0 comments on commit 8d05bd3

Please sign in to comment.