Rework MacroRef

This should resolve issues of macro names / selections not properly
updating after renaming / grouping / un-grouping macros
This commit is contained in:
WarmUpTill
2023-03-11 23:07:02 +01:00
committed by WarmUpTill
parent 9a4abd78ed
commit e66d0bc6b8
20 changed files with 184 additions and 228 deletions

View File

@@ -39,8 +39,9 @@ void MacroSelection::MacroAdd(const QString &name)
addItem(name);
}
void MacroSelection::SetCurrentMacro(Macro *m)
void MacroSelection::SetCurrentMacro(const MacroRef &macro)
{
auto m = macro.GetMacro();
if (!m) {
this->setCurrentIndex(0);
} else {