forked from MapComplete/MapComplete
Small fixes (in loading the settings)
This commit is contained in:
parent
54a01dfbef
commit
05c3710e8d
3 changed files with 21 additions and 39 deletions
|
@ -126,7 +126,7 @@ export class OsmConnection {
|
|||
if(this.preferenceSources[key] !== undefined){
|
||||
return this.preferenceSources[key];
|
||||
}
|
||||
const pref = new UIEventSource<string>(undefined);
|
||||
const pref = new UIEventSource<string>(this.preferences[key]);
|
||||
pref.addCallback((v) => {
|
||||
this.SetPreference(key, v);
|
||||
});
|
||||
|
@ -169,6 +169,7 @@ export class OsmConnection {
|
|||
}
|
||||
|
||||
if (this.preferences.data[k] === v) {
|
||||
console.log("Not updating preference", k, " to ", v, "not changed");
|
||||
return;
|
||||
}
|
||||
console.log("Updating preference", k, " to ", v);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue