Call MacroRef::PostLoad() automatically

This commit is contained in:
WarmUpTill 2026-04-11 19:17:06 +02:00
parent ce8d9d4522
commit ec7800597f

View File

@ -1,6 +1,8 @@
#include "macro-ref.hpp"
#include "macro.hpp"
#include "plugin-state-helpers.hpp"
namespace advss {
MacroRef::MacroRef(std::string name)
@ -19,6 +21,7 @@ void MacroRef::Load(obs_data_t *obj)
auto name = obs_data_get_string(obj, "macro");
_postLoadName = name;
_macro = GetWeakMacroByName(name);
AddPostLoadStep([this]() { MacroRef::PostLoad(); });
}
void MacroRef::PostLoad()