Browse Source

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

bugfix/11.0
hades 3 years ago
parent
commit
0d6d3cd98d
  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