Browse Source

UI: Enable "Paste Filters" after copying from scenes or mixer

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).
gxalpha 2 years ago
parent
commit
baa78b36ef
1 changed files with 2 additions and 0 deletions
  1. 2 0
      UI/window-basic-main.cpp

+ 2 - 0
UI/window-basic-main.cpp

@@ -10027,6 +10027,7 @@ void OBSBasic::AudioMixerCopyFilters()
 	obs_source_t *source = vol->GetSource();
 	obs_source_t *source = vol->GetSource();
 
 
 	copyFiltersSource = obs_source_get_weak_source(source);
 	copyFiltersSource = obs_source_get_weak_source(source);
+	ui->actionPasteFilters->setEnabled(true);
 }
 }
 
 
 void OBSBasic::AudioMixerPasteFilters()
 void OBSBasic::AudioMixerPasteFilters()
@@ -10047,6 +10048,7 @@ void OBSBasic::AudioMixerPasteFilters()
 void OBSBasic::SceneCopyFilters()
 void OBSBasic::SceneCopyFilters()
 {
 {
 	copyFiltersSource = obs_source_get_weak_source(GetCurrentSceneSource());
 	copyFiltersSource = obs_source_get_weak_source(GetCurrentSceneSource());
+	ui->actionPasteFilters->setEnabled(true);
 }
 }
 
 
 void OBSBasic::ScenePasteFilters()
 void OBSBasic::ScenePasteFilters()