Browse Source

REPORT-19946 Linux设计器

research/11.0
pengda 5 years ago
parent
commit
9825e28118
  1. 16
      designer-base/src/main/java/com/fr/design/update/push/DesignerPushUpdateManager.java

16
designer-base/src/main/java/com/fr/design/update/push/DesignerPushUpdateManager.java

@ -85,21 +85,6 @@ public class DesignerPushUpdateManager {
return StringUtils.EMPTY;
}
/**
* "自动更新推送"选项是否生效
*/
public boolean isAutoPushUpdateSupported() {
boolean isLocalEnv = WorkContext.getCurrent().isLocal();
boolean isChineseEnv = GeneralContext.isChineseEnv();
boolean isLinux = OperatingSystem.isLinux();
return isAutoPushUpdateSupported(isLocalEnv, isChineseEnv,isLinux);
}
private boolean isAutoPushUpdateSupported(boolean isLocalEnv, boolean isChineseEnv,boolean isLinux) {
// 远程设计和非中文环境以及Linux环境,都不生效
return isLocalEnv && isChineseEnv && !isLinux;
}
/**
* 检查更新如果有合适的更新版本则弹窗
*/
@ -134,7 +119,6 @@ public class DesignerPushUpdateManager {
}
}
return SupportOSImpl.AUTOPUSHUPDATE.support() && updateInfo.hasNewPushVersion();
// return isAutoPushUpdateSupported(). && updateInfo.hasNewPushVersion();
}
private boolean isValidJarVersion(String fullCurrentVersion, String fullLatestVersion) {

Loading…
Cancel
Save