[core] Explicitly set "template" key to false when saving as a regular file

This commit is contained in:
Candice Bentéjac 2022-09-21 14:34:47 +02:00
parent f9e5a5809c
commit aa728919c8

View file

@ -1200,9 +1200,10 @@ class Graph(BaseObject):
for p in usedNodeTypes
}
self.header["template"] = template
data = {}
if template:
self.header["template"] = True
data = {
Graph.IO.Keys.Header: self.header,
Graph.IO.Keys.Graph: self.getNonDefaultAttributes()