Browse Source

REPORT-69009 mac新系统下getSelectedFiles方法返回为空

security/10.0
hades 3 years ago committed by hades
parent
commit
d4c4c85796
  1. 6
      designer-base/src/main/java/com/fr/design/gui/ifilechooser/SwingFileChooser.java

6
designer-base/src/main/java/com/fr/design/gui/ifilechooser/SwingFileChooser.java

@ -32,7 +32,11 @@ class SwingFileChooser implements FileChooserProvider {
@Override
public File[] getSelectedFiles() {
return fileChooser.getSelectedFiles();
if (ArrayUtils.isNotEmpty(fileChooser.getSelectedFiles())) {
return fileChooser.getSelectedFiles();
} else {
return new File[]{fileChooser.getSelectedFile()};
}
}
@Override

Loading…
Cancel
Save