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

@@ -1,6 +1,7 @@
#include "headers/advanced-scene-switcher.hpp"
#include "headers/utility.hpp"
bool TimeSwitch::pause = false;
static QMetaObject::Connection addPulse;
void AdvSceneSwitcher::on_timeAdd_clicked()
@@ -107,7 +108,7 @@ bool checkRegularTime(TimeSwitch &s, int &interval)
void SwitcherData::checkTimeSwitch(bool &match, OBSWeakSource &scene,
OBSWeakSource &transition)
{
if (timeSwitches.size() == 0)
if (TimeSwitch::pause)
return;
for (TimeSwitch &s : timeSwitches) {