Browse Source

REPORT-100939 【版本管理三期】次管可见回收站

newui
Destiny.Lin 1 year ago
parent
commit
46f22a4afa
  1. 8
      designer-base/src/main/java/com/fr/design/mainframe/vcs/common/VcsHelper.java

8
designer-base/src/main/java/com/fr/design/mainframe/vcs/common/VcsHelper.java

@ -97,7 +97,13 @@ public class VcsHelper implements JTemplateActionListener {
EventDispatcher.listen(WorkspaceEvent.AfterSwitch, new Listener<Workspace>() {
@Override
public void on(Event event, Workspace param) {
root = WorkContext.getCurrent().isRoot() || WorkContext.getCurrent().isLocal();
try {
root = WorkContext.getCurrent().isRoot() || WorkContext.getCurrent().isLocal();
} catch (Exception e) {
root = false;
FineLoggerFactory.getLogger().error("[VcsHelper] get root failed", e.getMessage());
}
}
});
}

Loading…
Cancel
Save