MCPcopy Create free account
hub / github.com/audacity/audacity / FixBatchFlags

Function FixBatchFlags

src/menus/MenuHelper.cpp:123–134  ·  view source on GitHub ↗

Some weird special case stuff

Source from the content-addressed store, hash-verified

121
122// Some weird special case stuff
123CommandFlag FixBatchFlags(CommandFlag batchflags, const PluginDescriptor* plug)
124{
125 // For Noise Reduction so that there is more informative help
126 if ( plug->GetSymbol().Msgid() == XO( "Noise Reduction" ) )
127 return ( batchflags | NoiseReductionTimeSelectedFlag() ) & ~TimeSelectedFlag();
128 // For OpenVINO Music Generation so that it could be used when no audio is selected
129 // Note: do not use translatable string here, because
130 // translations are not synchronized yet with OpenVINO project
131 if ( plug->GetSymbol().Internal() == "OpenVINO Music Generation" )
132 return AudioIONotBusyFlag();
133 return batchflags;
134}
135
136
137void AddEffectMenuItemGroup(

Callers 3

AddSortedEffectMenuItemsFunction · 0.85
MakeAddGroupItemsFunction · 0.85

Calls 1

GetSymbolMethod · 0.45

Tested by

no test coverage detected