mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-07 09:05:57 -05:00
Add option to select OSB' main video output
This commit is contained in:
@@ -600,7 +600,8 @@ void populateAudioSelection(QComboBox *sel, bool addSelect)
|
||||
sel->setCurrentIndex(0);
|
||||
}
|
||||
|
||||
void populateVideoSelection(QComboBox *sel, bool addScenes, bool addSelect)
|
||||
void populateVideoSelection(QComboBox *sel, bool addMainOutput, bool addScenes,
|
||||
bool addSelect)
|
||||
{
|
||||
|
||||
auto sourceEnum = [](void *data, obs_source_t *source) -> bool /* -- */
|
||||
@@ -628,6 +629,10 @@ void populateVideoSelection(QComboBox *sel, bool addScenes, bool addSelect)
|
||||
}
|
||||
|
||||
sel->model()->sort(0);
|
||||
if (addMainOutput) {
|
||||
sel->insertItem(
|
||||
0, obs_module_text("AdvSceneSwitcher.OBSVideoOutput"));
|
||||
}
|
||||
if (addSelect) {
|
||||
addSelectionEntry(
|
||||
sel,
|
||||
|
||||
Reference in New Issue
Block a user