mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-20 17:17:25 -05:00
Add support for "slideshow_v2"
This commit is contained in:
parent
f50cd76493
commit
70415cd8f4
|
|
@ -184,11 +184,14 @@ static void populateConditionSelection(QComboBox *list)
|
|||
|
||||
static QStringList getSlideshowNames()
|
||||
{
|
||||
static constexpr std::array<std::string_view, 2> slideShowIds{
|
||||
"slideshow", "slideshow_v2"};
|
||||
auto sourceEnum = [](void *param, obs_source_t *source) -> bool /* -- */
|
||||
{
|
||||
QStringList *list = reinterpret_cast<QStringList *>(param);
|
||||
std::string sourceId = obs_source_get_id(source);
|
||||
if (sourceId.compare("slideshow") == 0) {
|
||||
auto sourceId = obs_source_get_id(source);
|
||||
if (std::find(slideShowIds.begin(), slideShowIds.end(),
|
||||
sourceId) != slideShowIds.end()) {
|
||||
*list << obs_source_get_name(source);
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user