Preserve child ordering in toplevel

The order of elements sometimes matters, so don't sort children by type.
This commit is contained in:
James Westman 2021-10-30 20:33:41 -05:00
parent c79d8dc396
commit 54237d7976
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6

View file

@ -130,8 +130,7 @@ class UI(AstNode):
def emit_xml(self, xml: XmlEmitter):
xml.start_tag("interface")
self.gtk_directive.emit_xml(xml)
for x in [*self.templates, *self.objects, *self.menus]:
for x in self.child_nodes:
x.emit_xml(xml)
xml.end_tag()