|
|
|
@ -152,7 +152,13 @@ public enum SupportOSImpl implements SupportOS {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
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(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|