mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-05-09 04:32:13 -05:00
Call MacroRef::PostLoad() automatically
This commit is contained in:
parent
ce8d9d4522
commit
ec7800597f
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user