Browse Source

REPORT-60538

bugfix/11.0
方磊 3 years ago
parent
commit
02c5a3cacf
  1. 10
      designer-form/src/main/java/com/fr/design/mainframe/FormWidgetDetailPane.java

10
designer-form/src/main/java/com/fr/design/mainframe/FormWidgetDetailPane.java

@ -1,7 +1,6 @@
package com.fr.design.mainframe;
import com.fr.base.BaseUtils;
import com.fr.design.DesignerEnvManager;
import com.fr.design.dialog.BasicPane;
import com.fr.design.gui.ibutton.UIHeadGroup;
import com.fr.design.gui.ilable.UILabel;
@ -25,7 +24,6 @@ import java.awt.Dimension;
import java.awt.FlowLayout;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
/**
* Created with IntelliJ IDEA.
@ -176,14 +174,8 @@ public class FormWidgetDetailPane extends FormDockView{
private void initPaneList() {
paneList = new ArrayList<>();
paneList.add(LocalWidgetRepoPane.getInstance());
if (isAddOnlineWidgetRepoPane()) {
if (GeneralContext.isChineseEnv()) {
paneList.add(OnlineWidgetRepoPane.getInstance());
}
}
private boolean isAddOnlineWidgetRepoPane() {
Locale locale = DesignerEnvManager.getEnvManager().getLanguage();
return locale != null && GeneralContext.isChineseEnv();
}
}

Loading…
Cancel
Save