Enable screenshots of scenes

This commit is contained in:
WarmUpTill
2021-11-27 17:03:49 +01:00
committed by WarmUpTill
parent 2d70fbac36
commit 949e26781a
3 changed files with 9 additions and 3 deletions

View File

@@ -594,7 +594,7 @@ void populateAudioSelection(QComboBox *sel, bool addSelect)
sel->setCurrentIndex(0);
}
void populateVideoSelection(QComboBox *sel, bool addSelect)
void populateVideoSelection(QComboBox *sel, bool addScenes, bool addSelect)
{
auto sourceEnum = [](void *data, obs_source_t *source) -> bool /* -- */
@@ -616,6 +616,11 @@ void populateVideoSelection(QComboBox *sel, bool addSelect)
sel->addItem(source.c_str());
}
if (addScenes) {
populateSceneSelection(sel, false, false, false, false, nullptr,
false);
}
sel->model()->sort(0);
if (addSelect) {
addSelectionEntry(