Browse Source

Merge pull request #1168 in DESIGN/design from ~BRYANT/design:feature/10.0 to feature/10.0

* commit '57b3e0a45e68b3b43af92a7988a1883bbba27bd1':
  KERNEL-418 更新升级重构
research/11.0
Bryant 5 years ago
parent
commit
e5b6be4e2b
  1. 4
      designer-base/src/main/java/com/fr/design/update/ui/dialog/UpdateMainDialog.java

4
designer-base/src/main/java/com/fr/design/update/ui/dialog/UpdateMainDialog.java

@ -35,6 +35,7 @@ import com.fr.stable.ProductConstants;
import com.fr.stable.StableUtils;
import com.fr.stable.StringUtils;
import com.fr.stable.project.ProjectConstants;
import com.fr.third.org.apache.http.ProtocolException;
import com.fr.third.org.apache.http.client.methods.CloseableHttpResponse;
import com.fr.third.org.apache.http.client.methods.HttpGet;
import com.fr.third.org.apache.http.impl.client.CloseableHttpClient;
@ -431,6 +432,7 @@ public class UpdateMainDialog extends UIDialog {
private void afterInit() {
if (autoUpdateAfterInit) {
updateButton.setEnabled(true);
updateButton.doClick();
}
}
@ -606,7 +608,7 @@ public class UpdateMainDialog extends UIDialog {
@Override
public void onDownloadFailed() {
progressBar.setVisible(false);
JOptionPane.showMessageDialog(getParent(),"Update Failed");
JOptionPane.showMessageDialog(getParent(),Toolkit.i18nText("Fine-Design_Update_Info_Failed_Message"));
RestartHelper.restart();
}
}.execute();

Loading…
Cancel
Save