mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
Name attributes on dictionary entries should always be first
This commit is contained in:
@@ -448,7 +448,13 @@ public partial class Decompiler
|
||||
private XElement PropertyDictionaryAddOnXElement(XElement xDictionary, IrisObject value, string key)
|
||||
{
|
||||
var xDictionaryEntry = PropertyListAddOnXElement(xDictionary, value);
|
||||
xDictionaryEntry.SetAttributeValue("Name", key);
|
||||
|
||||
// Insert the Name attribute (make sure it's always first)
|
||||
var attributes = xDictionaryEntry.Attributes().ToArray();
|
||||
xDictionaryEntry.RemoveAttributes();
|
||||
xDictionaryEntry.Add(new XAttribute("Name", key));
|
||||
xDictionaryEntry.Add(attributes);
|
||||
|
||||
return xDictionaryEntry;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user