livery: need to set name for standard dialogs separately
This commit is contained in:
parent
b96c113765
commit
fa820545b7
1 changed files with 2 additions and 1 deletions
|
@ -176,10 +176,11 @@ Dialog = {
|
|||
new : func(prop, path = nil, name = nil) {
|
||||
var m = { parents : [Dialog] };
|
||||
m.state = 0;
|
||||
m.name = name;
|
||||
if (path == nil) { # global dialog in $FG_ROOT/gui/dialogs/
|
||||
m.name = prop;
|
||||
m.prop = props.Node.new({ "dialog-name" : prop });
|
||||
} else { # aircraft dialog with given path
|
||||
m.name = name;
|
||||
m.path = path;
|
||||
m.prop = isa(prop, props.Node) ? prop : props.globals.getNode(prop, 1);
|
||||
if (m.prop.getName() != "dialog")
|
||||
|
|
Loading…
Reference in a new issue