Total-RP / Total-RP-3

The best roleplaying add-on for World of Warcraft.
http://curse.totalrp.com
Apache License 2.0
36 stars 18 forks source link

Debounce CU/CO field edits #1057

Closed Meorawr closed 4 months ago

Meorawr commented 4 months ago

When a user edits their CU or CO fields we don't debounce inputs, and so each keystroke immediately applies the change to the field and increments the vernum rapidly.

We now only commit changes to these fields 250ms after users stop inputting text for them, both from within the Misc. panel and from our new shiny "Currently" editor on the toolbar. This should stop the vernum field cycling quite so eagerly and us firing so many events while editing the fields.

Additionally as with #1056 the Misc. page was directly modifying these fields instead of going through the Player class. This is no longer the case, so we've got two less instances of manual vernum updating going on.