1
0
Fork 0

Fix warning message in download dialog.

This commit is contained in:
ThorstenB 2012-11-17 23:04:34 +01:00
parent fa5c560705
commit 60b9b24de9

View file

@ -444,13 +444,15 @@
<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"))
{
msg = "Monitor your bandwidth or use a flat-rate when using automatic download.";
}
else
{ {
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);
} }
else
msg = "Monitor your bandwidth or use a flat-rate when using automatic download.";
var msgLabel = gui.findElementByName(cmdarg(),"message"); var msgLabel = gui.findElementByName(cmdarg(),"message");
msgLabel.getNode("label",1).setValue(msg); msgLabel.getNode("label",1).setValue(msg);