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:
WarmUpTill 2022-12-03 15:45:01 +01:00 committed by WarmUpTill
parent 85bb0e62dc
commit cca32e59c2

View File

@ -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();