Skip to content

Commit

Permalink
Only show slide show condition type if OBS supports necessary features
Browse files Browse the repository at this point in the history
  • Loading branch information
WarmUpTill committed Sep 9, 2023
1 parent 5324fa9 commit 81da32f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/macro-core/macro-condition-slideshow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ namespace advss {

const std::string MacroConditionSlideshow::id = "slideshow";

bool MacroConditionSlideshow::_registered = MacroConditionFactory::Register(
MacroConditionSlideshow::id,
{MacroConditionSlideshow::Create, MacroConditionSlideshowEdit::Create,
"AdvSceneSwitcher.condition.slideshow"});
bool MacroConditionSlideshow::_registered =
obs_get_version() >= MAKE_SEMANTIC_VERSION(29, 1, 0) &&
MacroConditionFactory::Register(
MacroConditionSlideshow::id,
{MacroConditionSlideshow::Create,
MacroConditionSlideshowEdit::Create,
"AdvSceneSwitcher.condition.slideshow"});

static const std::map<MacroConditionSlideshow::Condition, std::string>
conditions = {
Expand Down

0 comments on commit 81da32f

Please sign in to comment.