MainWindow.java : Select Save Directory Crash Fix (#523)
Fixes bug in Java that arose in Windows 10 Creator Update. Caused the user to be unable to select directory with Windows Look & Feel enabled due to crashing. Disabling System Extension Hiding is currently the workaround suggested by Java devs. See here: https://bugs.openjdk.java.net/browse/JDK-8179014
This commit is contained in:
parent
ecf944e26b
commit
a71fce5768
@ -709,6 +709,7 @@ public class MainWindow implements Runnable, RipStatusHandler {
|
|||||||
configSaveDirButton.addActionListener(new ActionListener() {
|
configSaveDirButton.addActionListener(new ActionListener() {
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent arg0) {
|
public void actionPerformed(ActionEvent arg0) {
|
||||||
|
UIManager.put("FileChooser.useSystemExtensionHiding", false);
|
||||||
JFileChooser jfc = new JFileChooser(Utils.getWorkingDirectory());
|
JFileChooser jfc = new JFileChooser(Utils.getWorkingDirectory());
|
||||||
jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
|
jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
|
||||||
int returnVal = jfc.showDialog(null, "select directory");
|
int returnVal = jfc.showDialog(null, "select directory");
|
||||||
|
Loading…
Reference in New Issue
Block a user