Skip to content

Commit

Permalink
UI: Enable "Paste Filters" after copying from scenes or mixer
Browse files Browse the repository at this point in the history
Fixes an issue where if no filters had previously been copied and the
user copies a filter from either the scene tree or the audio mixer, the
"Paste Filters" action would not be available until the Edit menu
reloads (e.g., by selecting another source in the source tree).
  • Loading branch information
gxalpha authored and Lain-B committed Oct 8, 2023
1 parent 36ea03d commit baa78b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions UI/window-basic-main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10027,6 +10027,7 @@ void OBSBasic::AudioMixerCopyFilters()
obs_source_t *source = vol->GetSource();

copyFiltersSource = obs_source_get_weak_source(source);
ui->actionPasteFilters->setEnabled(true);
}

void OBSBasic::AudioMixerPasteFilters()
Expand All @@ -10047,6 +10048,7 @@ void OBSBasic::AudioMixerPasteFilters()
void OBSBasic::SceneCopyFilters()
{
copyFiltersSource = obs_source_get_weak_source(GetCurrentSceneSource());
ui->actionPasteFilters->setEnabled(true);
}

void OBSBasic::ScenePasteFilters()
Expand Down

0 comments on commit baa78b3

Please sign in to comment.