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