Browse Source

REPORT-58038 【主题切换】模板打开,模板应用的主题修改后,右侧面板有一个快速切换的效果

【问题原因】
优化下主题修改后表单布局编辑界面的更新逻辑,没必要重建右侧属性面板

【改动思路】
同上
research/11.0
Starryi 3 years ago
parent
commit
37425f9751
  1. 8
      designer-form/src/main/java/com/fr/design/mainframe/JForm.java

8
designer-form/src/main/java/com/fr/design/mainframe/JForm.java

@ -1190,10 +1190,12 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm<F
getTarget().setTemplateTheme(newTheme, compatible); getTarget().setTemplateTheme(newTheme, compatible);
fireTargetModified(shouldCreateUndoState); formDesign.refreshRoot();
JForm.this.refreshRoot(); FormHierarchyTreePane.getInstance().refreshRoot();
if (this.index != FORM_TAB) {
refreshToolArea(); refreshToolArea();
TableDataTreePane.getInstance(DesignModelAdapter.getCurrentModelAdapter()).refreshDockingView(); }
fireTargetModified(shouldCreateUndoState);
super.setTemplateTheme(newTheme, compatible); super.setTemplateTheme(newTheme, compatible);
} }

Loading…
Cancel
Save