Launcher: fix a glitch in restoring callsign
The base version of setValue used the wrong syntax, causing callsign restoring to fail.
This commit is contained in:
parent
0a6fe33bc3
commit
4fd59a6613
1 changed files with 4 additions and 3 deletions
|
@ -90,8 +90,9 @@ Item {
|
|||
|
||||
var defaultValue = ("defaultValue" in root) ? root.defaultValue : undefined;
|
||||
var rawValue = _config.getValueForKey("", root.setting, defaultValue);
|
||||
|
||||
// console.warn("restoring state for " + root.setting + ", got raw value " + rawValue + " with type " + typeof(rawValue))
|
||||
if (rawValue !== undefined) {
|
||||
if (rawValue !== defaultValue) {
|
||||
setValue(rawValue);
|
||||
}
|
||||
}
|
||||
|
@ -99,6 +100,6 @@ Item {
|
|||
function setValue(newValue)
|
||||
{
|
||||
// hook method so controls can override
|
||||
this.value = newValue
|
||||
root.value = newValue
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue