Add option to disable hotkey registration for new macros

This commit is contained in:
WarmUpTill
2022-09-24 19:49:58 +02:00
committed by WarmUpTill
parent c2edc7c612
commit a59d15a77a
5 changed files with 35 additions and 18 deletions

View File

@@ -58,8 +58,9 @@ bool AdvSceneSwitcher::addNewMacro(std::string &name, std::string format)
{
std::lock_guard<std::mutex> lock(switcher->m);
switcher->macros.emplace_back(
std::make_shared<Macro>(name, true));
switcher->macros.emplace_back(std::make_shared<Macro>(
name,
switcher->macroProperties._newMacroRegisterHotkeys));
}
return true;
}