allow pause individual switching methods (#90)

* allow pausing individual switching methods

* clean up pause tab

* allow import of old pauseScenes and pauseWindows
This commit is contained in:
WarmUpTill
2020-12-31 14:24:09 +01:00
committed by GitHub
parent fae50024ea
commit caa2833272
32 changed files with 520 additions and 357 deletions

View File

@@ -3,6 +3,7 @@
#include "headers/advanced-scene-switcher.hpp"
#include "headers/utility.hpp"
bool RandomSwitch::pause = false;
static QMetaObject::Connection addPulse;
void AdvSceneSwitcher::on_randomAdd_clicked()
@@ -34,7 +35,7 @@ void AdvSceneSwitcher::on_randomRemove_clicked()
void SwitcherData::checkRandom(bool &match, OBSWeakSource &scene,
OBSWeakSource &transition, int &delay)
{
if (randomSwitches.size() == 0)
if (randomSwitches.size() == 0 || RandomSwitch::pause)
return;
std::deque<RandomSwitch> rs(randomSwitches);