fix(autogen): forgot to call update callback in some cases
This commit is contained in:
parent
06a5f91769
commit
bbe862b309
1 changed files with 2 additions and 2 deletions
|
@ -84,9 +84,9 @@ void writePropertySetHandler(std::ofstream& out, ClassAnalysis state) {
|
|||
<< "\n this->" << prop.fieldName << " = ref.expired() ? std::weak_ptr<" << subtype << ">() : std::dynamic_pointer_cast<" << subtype << ">(ref.lock());";
|
||||
} else {
|
||||
out << "\n this->" << prop.fieldName << " = " << castFromVariant("value", prop.backingFieldType) << ";";
|
||||
if (!prop.onUpdateCallback.empty())
|
||||
out << "\n " << prop.onUpdateCallback << "(name);";
|
||||
}
|
||||
if (!prop.onUpdateCallback.empty())
|
||||
out << "\n " << prop.onUpdateCallback << "(name);";
|
||||
|
||||
out << "\n }";
|
||||
first = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue