Fix manual weather UI.
This commit is contained in:
parent
e06b519e8e
commit
e73a07b0cf
1 changed files with 2 additions and 3 deletions
|
@ -49,7 +49,7 @@
|
|||
|
||||
setprop( "/environment/params/metar-updates-environment", 0 );
|
||||
setprop( "/environment/realwx/enabled", 0 );
|
||||
setprop( "/environment/config/enabled", 0 );
|
||||
setprop( "/environment/config/enabled", 1 );
|
||||
} else if( scenarioName == "Live data" ) {
|
||||
# If we've selected Live Data we need to force
|
||||
# a refresh of the Live Data setting.
|
||||
|
@ -153,10 +153,9 @@
|
|||
setprop( "/environment/realwx/enabled", 0 );
|
||||
setprop( "/environment/config/enabled", 1 );
|
||||
metar = getprop( me.base ~ "/metar-string" );
|
||||
setprop("/environment/weather-scenario", scenarioName);
|
||||
}
|
||||
|
||||
setprop("/environment/weather-scenario", scenarioName);
|
||||
|
||||
if( metar != nil ) {
|
||||
setprop( "environment/metar/data", normalize_string(metar) );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue