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

@@ -8,6 +8,7 @@
#include "headers/curl-helper.hpp"
#include "headers/utility.hpp"
bool FileSwitch::pause = false;
static QMetaObject::Connection addPulse;
static std::hash<std::string> strHash;
@@ -229,6 +230,9 @@ bool checkLocalFileContent(FileSwitch &s)
void SwitcherData::checkFileContent(bool &match, OBSWeakSource &scene,
OBSWeakSource &transition)
{
if (FileSwitch::pause)
return;
for (FileSwitch &s : fileSwitches) {
if (!s.initialized())
continue;