Browse Source

REPORT-39338 【回归】内置服务器启动进度条会先展示上次的进度再初始化

1. bug原因:,每次内置服务器启动使用的进度条弹窗都是同一个,只是在可见与不可见状态之间切换,而在启动成功之后,没有清空上次进度,所以会先显示上次进度
2. 修改方案:为进度条的value置0,并刷新UI
feature/big-screen
Yvan 4 years ago
parent
commit
4e104128f1
  1. 4
      designer-base/src/main/java/com/fr/design/gui/iprogressbar/ProgressDialog.java
  2. 7
      designer-base/src/main/java/com/fr/design/mainframe/DesignerFrame.java

4
designer-base/src/main/java/com/fr/design/gui/iprogressbar/ProgressDialog.java

@ -103,4 +103,8 @@ public class ProgressDialog extends UIDialog {
} }
this.text.setText(text); this.text.setText(text);
} }
public void repaintProgressBar() {
progressBar.update(progressBar.getGraphics());
}
} }

7
designer-base/src/main/java/com/fr/design/mainframe/DesignerFrame.java

@ -1309,4 +1309,11 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
public boolean isDesignerOpened() { public boolean isDesignerOpened() {
return designerOpened; return designerOpened;
} }
/**
* 刷新进度框的UI部分
*/
public void repaintProgressDialog() {
progressDialog.repaintProgressBar();
}
} }

Loading…
Cancel
Save