MCPcopy Create free account
hub / github.com/clechasseur/pathcopycopy / Enabled

Method Enabled

PathCopyCopy/plugins/src/PipelinePlugin.cpp:154–160  ·  view source on GitHub ↗

Checks whether the plugin should be enabled or not in the contextual menu. In our case, if we failed to decode our pipeline or if the pipeline complains, we'll show up as disabled. @param p_ParentPath Path of the parent folder of all files; unused. @param p_File Path of one selected file; unused.

Source from the content-addressed store, hash-verified

152 // @param p_File Path of one selected file; unused.
153 //
154 bool PipelinePlugin::Enabled(const std::wstring& p_ParentPath,
155 const std::wstring& p_File) const
156 {
157 const Pipeline* pPipeline = GetPipeline();
158 return pPipeline != nullptr &&
159 pPipeline->ShouldBeEnabledFor(p_ParentPath, p_File, m_pPluginProvider);
160 }
161
162 //
163 // Modifies a path using all elements in our pipeline.

Callers

nothing calls this directly

Calls 1

ShouldBeEnabledForMethod · 0.45

Tested by

no test coverage detected