Browse Source

Pull request #8401: REPORT-69009 mac新系统下getSelectedFiles方法返回为空

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

* commit '0d6d3cd98d8b99d665c793eb73c83bb2f579b51c':
  REPORT-69009 mac新系统下getSelectedFiles方法返回为空
bugfix/11.0
Hades 3 years ago
parent
commit
3e8c919ee7
  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