don't use obsolete lon/lat format command, but cycle /sim/lon-lat-format
through 0 -> 1 -> 2 -> 0 ...
This commit is contained in:
parent
eb5b539b47
commit
19134637c9
1 changed files with 5 additions and 1 deletions
|
@ -248,7 +248,11 @@
|
|||
<item>
|
||||
<label>Set Lat/Lon Format</label>
|
||||
<binding>
|
||||
<command>old-lat-lon-format-dialog</command>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
var f = getprop(var d = "/sim/lon-lat-format") + 1;
|
||||
setprop(d, f < 0 ? 0 : f > 2 ? 0 : f);
|
||||
</script>
|
||||
</binding>
|
||||
</item>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue