Fix warning message when terrasync is not available.
This commit is contained in:
parent
37bcf878c7
commit
78ca4facfd
1 changed files with 2 additions and 2 deletions
|
@ -444,7 +444,7 @@
|
||||||
<nasal>
|
<nasal>
|
||||||
<open><![CDATA[
|
<open><![CDATA[
|
||||||
var msg = "";
|
var msg = "";
|
||||||
if (getprop("/sim/terrasync/built-in-svn-available",0))
|
if (getprop("/sim/terrasync/built-in-svn-available") == 0)
|
||||||
{
|
{
|
||||||
msg = "Sorry, this binary was built without support to download scenery.";
|
msg = "Sorry, this binary was built without support to download scenery.";
|
||||||
setprop("/sim/terrasync/enabled", 0);
|
setprop("/sim/terrasync/enabled", 0);
|
||||||
|
@ -469,7 +469,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
# Add error text if the user only has fg-data/Scenery available and disable controls.
|
# Add error text if the user only has fg-data/Scenery available and disable controls.
|
||||||
if (! valid) {
|
if (!valid) {
|
||||||
var warning = cmdarg().getChildren("group")[1].getChildren("text")[1];
|
var warning = cmdarg().getChildren("group")[1].getChildren("text")[1];
|
||||||
var txt = "You must configure a separate FG_SCENERY directory for automatic scenery download";
|
var txt = "You must configure a separate FG_SCENERY directory for automatic scenery download";
|
||||||
warning.getNode("label").setValue(txt);
|
warning.getNode("label").setValue(txt);
|
||||||
|
|
Loading…
Reference in a new issue