Browse Source

Pull request #10174: REPORT-80491 linux设计器调用系统文件夹,设计器闪退

Merge in DESIGN/design from ~DESTINY.LIN/design:final/11.0 to final/11.0

* commit '177af481bea505bef6ff05677d46684ca25c0b68':
  REPORT-80491 linux设计器调用系统文件夹,设计器闪退
new-design
Destiny.Lin-林锦龙 2 years ago
parent
commit
890c614e61
  1. 8
      designer-base/src/main/java/com/fr/design/os/impl/SupportOSImpl.java

8
designer-base/src/main/java/com/fr/design/os/impl/SupportOSImpl.java

@ -152,7 +152,13 @@ public enum SupportOSImpl implements SupportOS {
@Override @Override
public boolean support() { public boolean support() {
return (OperatingSystem.isLinux() && Arch.getArch() == Arch.ARM) || MACOS_12_VERSION_ADAPTER.support(); boolean javafxExist = true;
try {
Class.forName("javafx.stage.FileChooser");
} catch (ClassNotFoundException e) {
javafxExist = false;
}
return !javafxExist || (OperatingSystem.isLinux() && Arch.getArch() == Arch.ARM) || MACOS_12_VERSION_ADAPTER.support();
} }
}, },

Loading…
Cancel
Save