(Animated jetways) Fix dialog "can't find object" Nasal errors
This commit is contained in:
parent
2cb19bc34e
commit
887b9704b5
1 changed files with 6 additions and 3 deletions
|
@ -12,6 +12,8 @@
|
|||
var aptlist = props.globals.getNode(self.getNode("text/property").getValue(), 1);
|
||||
var UPDATE_PERIOD = 5;
|
||||
var update = func
|
||||
{
|
||||
if (jetways != nil)
|
||||
{
|
||||
var list = "";
|
||||
foreach (var apt; jetways.loaded_airports)
|
||||
|
@ -19,6 +21,7 @@
|
|||
list ~= apt ~ " ";
|
||||
}
|
||||
aptlist.setValue(list == "" ? "No airports loaded" : "Loaded airports: " ~ list);
|
||||
}
|
||||
settimer(update, UPDATE_PERIOD);
|
||||
};
|
||||
settimer(update, 0);
|
||||
|
|
Loading…
Reference in a new issue