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

Method ShowForFolders

PathCopyCopy/plugins/src/PipelinePlugin.cpp:287–298  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

285 // @return true to display this plugin when folders are selected.
286 //
287 bool PipelinePlugin::ShowForFolders() const noexcept(false)
288 {
289 // This is stored in pipeline options.
290 bool showForFolders = Plugin::ShowForFolders();
291 const Pipeline* pPipeline = GetPipeline();
292 if (pPipeline != nullptr) {
293 PipelineOptions options;
294 pPipeline->ModifyOptions(options);
295 showForFolders = options.GetShowForFolders();
296 }
297 return showForFolders;
298 }
299
300 } // namespace Plugins
301

Callers

nothing calls this directly

Calls 2

GetShowForFoldersMethod · 0.80
ModifyOptionsMethod · 0.45

Tested by

no test coverage detected