mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-08 09:36:07 -05:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user