actually save and load old custom settings

This commit is contained in:
HJfod 2024-09-11 13:02:57 +03:00
parent 818d8bfe28
commit 2119b4e333

View file

@ -638,9 +638,15 @@ void LegacyCustomSettingV3::setValue(std::shared_ptr<SettingValue> value) {
} }
bool LegacyCustomSettingV3::load(matjson::Value const& json) { bool LegacyCustomSettingV3::load(matjson::Value const& json) {
if (m_impl->legacyValue) {
return m_impl->legacyValue->load(json);
}
return true; return true;
} }
bool LegacyCustomSettingV3::save(matjson::Value& json) const { bool LegacyCustomSettingV3::save(matjson::Value& json) const {
if (m_impl->legacyValue) {
return m_impl->legacyValue->save(json);
}
return true; return true;
} }
SettingNodeV3* LegacyCustomSettingV3::createNode(float width) { SettingNodeV3* LegacyCustomSettingV3::createNode(float width) {