1
0
Fork 0

Avoid a warning from GPS dialog.

This commit is contained in:
James Turner 2014-03-16 16:21:06 +00:00
parent e46764624d
commit 70dee4a029

View file

@ -137,7 +137,9 @@
}
# restore state from previous time the dialog was open
updateSearchResults(0, dlg.getNode("scratch-index", 1).getValue());
# default to 0 if no prior value
var curIndex = dlg.getNode("scratch-index", 1).getValue() or 0;
updateSearchResults(0, curIndex);
var slaved = props.globals.getNode("/instrumentation/nav[0]/slaved-to-gps", 1);
]]></open>