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

Method ShowForFiles

PathCopyCopy/plugins/src/PipelinePlugin.cpp:269–280  ·  view source on GitHub ↗

Checks if this plugin should be displayed when files are selected. @return true to display this plugin when files are selected.

Source from the content-addressed store, hash-verified

267 // @return true to display this plugin when files are selected.
268 //
269 bool PipelinePlugin::ShowForFiles() const noexcept(false)
270 {
271 // This is stored in pipeline options.
272 bool showForFiles = Plugin::ShowForFiles();
273 const Pipeline* pPipeline = GetPipeline();
274 if (pPipeline != nullptr) {
275 PipelineOptions options;
276 pPipeline->ModifyOptions(options);
277 showForFiles = options.GetShowForFiles();
278 }
279 return showForFiles;
280 }
281
282 //
283 // Checks if this plugin should be displayed when folders are selected.

Callers

nothing calls this directly

Calls 2

GetShowForFilesMethod · 0.80
ModifyOptionsMethod · 0.45

Tested by

no test coverage detected