Browse Source

REPORT-79026【迭代】【起始页】F0028、F0022部分场景记录异常

release/11.0
Harrison 2 years ago
parent
commit
a7efa6d3a4
  1. 5
      designer-base/src/main/java/com/fr/startup/metric/DesignerStartupModel.java
  2. 9
      designer-realize/src/main/java/com/fr/start/module/optimized/DesignerStartupPageActivator.java

5
designer-base/src/main/java/com/fr/startup/metric/DesignerStartupModel.java

@ -6,7 +6,7 @@ import com.fr.plugin.context.PluginContext;
import com.fr.plugin.manage.PluginManager;
import com.fr.stable.os.AbstractOperatingSystem;
import com.fr.stable.os.OperatingSystem;
import com.fr.start.common.DesignerStartupConfig;
import com.fr.start.common.DesignerStartupContext;
import com.fr.workspace.WorkContext;
import java.lang.management.ManagementFactory;
@ -117,7 +117,8 @@ public class DesignerStartupModel {
private void fillMode() {
this.setMode(DesignerStartupConfig.getInstance().isEnabled() ? 0 : 1);
// 这里需要使用 showStartupPage , 表示是否存在启动页
this.setMode(DesignerStartupContext.getInstance().isShowStartupPage() ? 0 : 1);
}
public void fill() {

9
designer-realize/src/main/java/com/fr/start/module/optimized/DesignerStartupPageActivator.java

@ -47,10 +47,17 @@ public class DesignerStartupPageActivator extends Activator {
if (context.isShowStartupPage()) {
showDesignerStartupPage(context);
} else {
DesignerStartupPageUtil.enterWorkspace();
startNonStartupPage();
}
}
private void startNonStartupPage() {
StopWatch recorder = DesignerStartupContext.getRecorder();
DesignerStartupPageUtil.enterWorkspace();
recordStartupEnd(recorder);
}
private void showDesignerStartupPage(DesignerStartupContext context) {
// 启动页关闭

Loading…
Cancel
Save