Clicking the popup doesn't cause the login to appear anymore

This commit is contained in:
Pieter Vander Vennet 2020-07-17 12:00:43 +02:00
parent 4bfe078836
commit 66e5808e4e

View file

@ -126,8 +126,9 @@ export class OsmConnection {
if (this.preferenceSources[key] !== undefined) { if (this.preferenceSources[key] !== undefined) {
return this.preferenceSources[key]; return this.preferenceSources[key];
} }
if (this.userDetails.data.loggedIn) {
this.UpdatePreferences(); this.UpdatePreferences();
console.log("Getting preference object", key, "currently upstreamed as ",this.preferences.data[key] ); }
const pref = new UIEventSource<string>(this.preferences.data[key]); const pref = new UIEventSource<string>(this.preferences.data[key]);
pref.addCallback((v) => { pref.addCallback((v) => {
this.SetPreference(key, v); this.SetPreference(key, v);