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