mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-30 05:06:14 -05:00
Add macro action "random" (#353)
This should be expanded upon by adding the ability to add weights to each macro.
This commit is contained in:
@@ -86,6 +86,9 @@ void AdvSceneSwitcher::on_macroRemove_clicked()
|
||||
int idx = ui->macros->currentRow();
|
||||
QString::fromStdString(switcher->macros[idx]->Name());
|
||||
switcher->macros.erase(switcher->macros.begin() + idx);
|
||||
for (auto &m : switcher->macros) {
|
||||
m->ResolveMacroRef();
|
||||
}
|
||||
}
|
||||
|
||||
delete item;
|
||||
|
||||
Reference in New Issue
Block a user