Browse Source

Pull request #8402: REPORT-69009 mac新系统下getSelectedFiles方法返回为空 10.0同步

Merge in DESIGN/design from ~HADES/design:release/10.0 to release/10.0

* commit 'd4c4c857965f918e62cce3afd8f8642610ed58e9':
  REPORT-69009 mac新系统下getSelectedFiles方法返回为空
release/10.0
Hades 3 years ago
parent
commit
74541d6f67
  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 @Override
public File[] getSelectedFiles() { public File[] getSelectedFiles() {
return fileChooser.getSelectedFiles(); if (ArrayUtils.isNotEmpty(fileChooser.getSelectedFiles())) {
return fileChooser.getSelectedFiles();
} else {
return new File[]{fileChooser.getSelectedFile()};
}
} }
@Override @Override

Loading…
Cancel
Save