forked from MapComplete/MapComplete
Performance: stabilize writing user preferences with a timeout
This commit is contained in:
parent
8447f69f7a
commit
621449f7a8
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ export class OsmPreferences {
|
|||
if (value) {
|
||||
this.setPreferencesAll(key, value, deferPing)
|
||||
}
|
||||
pref.addCallback(async (v) => {
|
||||
pref.stabilized(5000).addCallback(async (v) => {
|
||||
await this.uploadKvSplit(key, v)
|
||||
this.setPreferencesAll(key, v, deferPing)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue