Browse Source

REPORT-71839 设计器启动时启动服务器,仍连曾断开的服务器,会有远程更新提醒

pengda 2 years ago
parent
commit
0e6693903c
  1. 16
      designer-base/src/main/java/com/fr/design/versioncheck/VersionCheckUtils.java

16
designer-base/src/main/java/com/fr/design/versioncheck/VersionCheckUtils.java

@ -96,13 +96,21 @@ public class VersionCheckUtils {
} }
public static void showVersionCheckDialog(String envName) { public static void showVersionCheckDialog(String envName) {
new SwingWorker<Void, Void>() { new SwingWorker<Boolean, Void>() {
@Override @Override
protected Void doInBackground() throws Exception { protected Boolean doInBackground() {
if (!VersionCheckUtils.versionCheck(envName)) { return !VersionCheckUtils.versionCheck(envName);
}
@Override
protected void done() {
try {
if (get()) {
showNotificationDialog(envName); showNotificationDialog(envName);
} }
return null; } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage(), e);
}
} }
}.execute(); }.execute();
} }

Loading…
Cancel
Save