forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
432122c7a0
commit
2f53b55faa
268 changed files with 5707 additions and 3555 deletions
|
|
@ -48,13 +48,17 @@ export class OsmPreferences {
|
|||
private setPreferencesAll(key: string, value: string, deferping = false) {
|
||||
if (this._allPreferences.data[key] !== value) {
|
||||
this._allPreferences.data[key] = value
|
||||
if(!deferping){
|
||||
if (!deferping) {
|
||||
this._allPreferences.ping()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private initPreference(key: string, value: string = undefined, deferPing = false): UIEventSource<string> {
|
||||
private initPreference(
|
||||
key: string,
|
||||
value: string = undefined,
|
||||
deferPing = false
|
||||
): UIEventSource<string> {
|
||||
if (this.preferences[key] !== undefined) {
|
||||
if (value !== undefined) {
|
||||
this.preferences[key].set(value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue