UI: Disable Copy Filters in Audio Mixer for source with no filters

When you right-click on a source in the Sources list that does not have
any filters, the "Copy Filters" item is disabled. When you right-click
on an audio source in the Audio Mixer that does not have any filters,
the "Copy Filters" item is enabled. This fixes the Audio Mixer context
menu to behave like the Sources context menu.

Fixes #4790.
This commit is contained in:
Ryan Foster 2021-06-02 01:34:55 -04:00 committed by Jim
parent 08c5f02010
commit efb2dc70b9

View file

@ -3337,6 +3337,9 @@ void OBSBasic::VolControlContextMenu()
/* ------------------- */
copyFiltersAction.setEnabled(obs_source_filter_count(vol->GetSource()) >
0);
if (copyFiltersString == nullptr)
pasteFiltersAction.setEnabled(false);
else