From 9825e2811822776648d003a4d5c2220f142a77af Mon Sep 17 00:00:00 2001 From: pengda Date: Thu, 10 Oct 2019 15:14:44 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-19946=20Linux=E8=AE=BE=E8=AE=A1=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../update/push/DesignerPushUpdateManager.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/update/push/DesignerPushUpdateManager.java b/designer-base/src/main/java/com/fr/design/update/push/DesignerPushUpdateManager.java index afec652b3e..dcc282c53f 100644 --- a/designer-base/src/main/java/com/fr/design/update/push/DesignerPushUpdateManager.java +++ b/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) {