Add wait for transition to complete option for currrent scene check

Previous behaviour was to always wait for the transition to complete, as
switcher->currentScene is only updated on
OBS_FRONTEND_EVENT_SCENE_CHANGED.
This commit is contained in:
WarmUpTill
2021-10-19 21:57:04 +02:00
committed by WarmUpTill
parent 8ff50056f0
commit d743260ca8
3 changed files with 42 additions and 2 deletions

View File

@@ -4,6 +4,7 @@
#include <QWidget>
#include <QComboBox>
#include <QCheckBox>
enum class SceneType {
CURRENT,
@@ -24,6 +25,7 @@ public:
return std::make_shared<MacroConditionScene>();
}
bool _waitForTransition = false;
SceneSelection _scene;
SceneType _type;
@@ -52,12 +54,14 @@ public:
private slots:
void SceneChanged(const SceneSelection &);
void TypeChanged(int value);
void WaitForTransitionChanged(int state);
signals:
void HeaderInfoChanged(const QString &);
protected:
SceneSelectionWidget *_scenes;
QComboBox *_sceneType;
QCheckBox *_waitForTransition;
std::shared_ptr<MacroConditionScene> _entryData;
private: