|
|
|
@ -81,9 +81,11 @@ public class VcsHelper implements JTemplateActionListener {
|
|
|
|
|
if (op != null) { |
|
|
|
|
try { |
|
|
|
|
legacyMode = op.isLegacyMode(); |
|
|
|
|
root = WorkContext.getCurrent().isLocal() || WorkContext.getCurrent().isRoot(); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
legacyMode = true; |
|
|
|
|
FineLoggerFactory.getLogger().error("[VcsHelper] get legacy first failed ", e.getMessage()); |
|
|
|
|
root = false; |
|
|
|
|
FineLoggerFactory.getLogger().error("[VcsHelper] init first failed ", e.getMessage()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
EventDispatcher.listen(ConfigEvent.READY, new ListenerAdaptor() { |
|
|
|
|