Browse Source

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

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

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

Loading…
Cancel
Save