fix indentation
This commit is contained in:
parent
8c7beac9d9
commit
0246507821
1 changed files with 13 additions and 13 deletions
|
@ -149,19 +149,19 @@ Widget = {
|
|||
# fgcommand("dialog-show", dlg);
|
||||
#
|
||||
loadXMLDialog = func(node, path) {
|
||||
if (node.getName() != "dialog") {
|
||||
print("loadXMLDialog: node name must be 'dialog'");
|
||||
return nil;
|
||||
}
|
||||
fgcommand("loadxml", props.Node.new({"filename": path, "targetnode": node.getPath()}));
|
||||
var name = node.getNode("name");
|
||||
if (name == nil) {
|
||||
print("loadXMLDialog: XML dialog must have <name>");
|
||||
return nil;
|
||||
}
|
||||
node.getNode("dialog-name", 1).setValue(name.getValue());
|
||||
fgcommand("dialog-new", node);
|
||||
node;
|
||||
if (node.getName() != "dialog") {
|
||||
print("loadXMLDialog: node name must be 'dialog'");
|
||||
return nil;
|
||||
}
|
||||
fgcommand("loadxml", props.Node.new({"filename": path, "targetnode": node.getPath()}));
|
||||
var name = node.getNode("name");
|
||||
if (name == nil) {
|
||||
print("loadXMLDialog: XML dialog must have <name>");
|
||||
return nil;
|
||||
}
|
||||
node.getNode("dialog-name", 1).setValue(name.getValue());
|
||||
fgcommand("dialog-new", node);
|
||||
node;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue