gonzaPaEst / cyphersheets

This Foundry VTT module replaces the default Cypher System PC sheet with alternate character sheet styles inspired by MCG settings and other generic themes.
MIT License
0 stars 2 forks source link

Settings configuration (checkboxes) do not persist #1

Closed gonzaPaEst closed 3 years ago

gonzaPaEst commented 3 years ago

It seems to be happening once a second world is created.

gonzaPaEst commented 3 years ago

After a lot of troubleshooting, I've discovered that it is Foundry-wide issue. If the module has multiple options that would require a reload(), Foundry is able to register up to two changes before reloading.

Adding a 1-second timeout to the onChange function fixes the issue:

onChange: () => setTimeout(() => {
            location.reload();
         }, 1000)