Attempt to fix the scalar bug
This commit is contained in:
parent
ddce64bce8
commit
d0a8057a38
1 changed files with 1 additions and 1 deletions
|
@ -762,7 +762,7 @@ canvas.NDStyles["Airbus"] = {
|
||||||
is_true: func(nd) {
|
is_true: func(nd) {
|
||||||
#var cur_wp = getprop("autopilot/route-manager/current-wp");
|
#var cur_wp = getprop("autopilot/route-manager/current-wp");
|
||||||
var deg = int(getprop("/autopilot/route-manager/wp/bearing-deg"));
|
var deg = int(getprop("/autopilot/route-manager/wp/bearing-deg"));
|
||||||
nd.symbols.wpActiveCrs.setText(""~deg~"°");
|
nd.symbols.wpActiveCrs.setText((deg or "")~"°");
|
||||||
nd.symbols.wpActiveCrs.show();
|
nd.symbols.wpActiveCrs.show();
|
||||||
},
|
},
|
||||||
is_false: func(nd) nd.symbols.wpActiveCrs.hide(),
|
is_false: func(nd) nd.symbols.wpActiveCrs.hide(),
|
||||||
|
|
Reference in a new issue