MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / refreshFileInfoVisibility

Method refreshFileInfoVisibility

Engine/ReadNode.cpp:804–823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

802} // ReadNodePrivate::createReadNode
803
804void
805ReadNodePrivate::refreshFileInfoVisibility(const std::string& pluginID)
806{
807 KnobButtonPtr fileInfos = fileInfosKnob.lock();
808 KnobIPtr hasMetadataKnob = _publicInterface->getKnobByName("showMetadata");
809 bool hasFfprobe = false;
810 if (!hasMetadataKnob) {
811 QString ffprobePath = getFFProbeBinaryPath();
812 hasFfprobe = QFile::exists(ffprobePath);
813 } else {
814 hasMetadataKnob->setSecret(true);
815 }
816
817
818 if ( hasMetadataKnob || ( ReadNode::isVideoReader(pluginID) && hasFfprobe ) ) {
819 fileInfos->setSecret(false);
820 } else {
821 fileInfos->setSecret(true);
822 }
823}
824
825void
826ReadNodePrivate::refreshPluginSelectorKnob()

Callers 1

knobChangedMethod · 0.80

Calls 4

isVideoReaderFunction · 0.85
lockMethod · 0.45
getKnobByNameMethod · 0.45
setSecretMethod · 0.45

Tested by

no test coverage detected