mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-20 08:15:46 -05:00
Do not allow running paused macros
The old behaviour was not consistent with the other action types. (E.g. "Sequence" or "Random" ignore paused macros) It would also only ever execute the first action of the given macro as afterwards the plugin would realise the macro is paused and abort the execution.
This commit is contained in:
@@ -36,7 +36,9 @@ bool MacroActionMacro::PerformAction()
|
||||
_macro->ResetCount();
|
||||
break;
|
||||
case PerformMacroAction::RUN:
|
||||
_macro->PerformActions();
|
||||
if (!_macro->Paused()) {
|
||||
_macro->PerformActions();
|
||||
}
|
||||
break;
|
||||
case PerformMacroAction::STOP:
|
||||
_macro->Stop();
|
||||
|
||||
Reference in New Issue
Block a user