mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix consistency issues in converting to metadata
This commit is contained in:
@@ -33,6 +33,7 @@ namespace SabreTools.DatItems.Formats
|
||||
#region Constructors
|
||||
|
||||
public ConfSetting() : base() { }
|
||||
|
||||
public ConfSetting(Models.Metadata.ConfSetting item) : base(item)
|
||||
{
|
||||
// Process flag values
|
||||
@@ -46,5 +47,22 @@ namespace SabreTools.DatItems.Formats
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Cloning Methods
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override Models.Metadata.ConfSetting GetInternalClone()
|
||||
{
|
||||
var confSettingItem = base.GetInternalClone();
|
||||
|
||||
// Handle subitems
|
||||
var condition = GetFieldValue<Condition>(Models.Metadata.ConfSetting.ConditionKey);
|
||||
if (condition != null)
|
||||
confSettingItem[Models.Metadata.ConfSetting.ConditionKey] = condition.GetInternalClone();
|
||||
|
||||
return confSettingItem;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user