From cca32e59c2ce69efadaf07eaa00b4e36f1034bfd Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Sat, 3 Dec 2022 15:45:01 +0100 Subject: [PATCH] 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. --- src/macro-core/macro-action-macro.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/macro-core/macro-action-macro.cpp b/src/macro-core/macro-action-macro.cpp index 36b3cf80..b748cd2a 100644 --- a/src/macro-core/macro-action-macro.cpp +++ b/src/macro-core/macro-action-macro.cpp @@ -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();