Add button to manually run macro actions

This commit is contained in:
WarmUpTill
2021-11-27 17:28:43 +01:00
committed by WarmUpTill
parent eafad7fe7f
commit 9dd47b811b
4 changed files with 22 additions and 3 deletions

View File

@@ -173,6 +173,16 @@ void AdvSceneSwitcher::on_macroName_editingFinished()
emit MacroRenamed(oldName, newName);
}
void AdvSceneSwitcher::on_runMacro_clicked()
{
Macro *macro = getSelectedMacro();
if (!macro) {
return;
}
macro->PerformAction();
}
void AdvSceneSwitcher::PopulateMacroActions(Macro &m, uint32_t afterIdx)
{
auto &actions = m.Actions();