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:
@@ -2,6 +2,7 @@
|
||||
#include "headers/volume-control.hpp"
|
||||
#include "headers/utility.hpp"
|
||||
|
||||
bool AudioSwitch::pause = false;
|
||||
static QMetaObject::Connection addPulse;
|
||||
|
||||
void AdvSceneSwitcher::on_audioAdd_clicked()
|
||||
@@ -74,7 +75,7 @@ void AdvSceneSwitcher::on_audioDown_clicked()
|
||||
void SwitcherData::checkAudioSwitch(bool &match, OBSWeakSource &scene,
|
||||
OBSWeakSource &transition)
|
||||
{
|
||||
if (audioSwitches.size() == 0)
|
||||
if (AudioSwitch::pause)
|
||||
return;
|
||||
|
||||
for (AudioSwitch &s : audioSwitches) {
|
||||
|
||||
Reference in New Issue
Block a user