Skip to content

Conversation

@902seanryan
Copy link
Contributor

Discovered that some legacy behaviour was hanging around in the Sound and CaptionsToggle plugins where in the start() method they'd read from localstorage and automatically send the mute states to the application.
These values were already being sent during the sendAllProperties call and are considered duplicate.

For review this is where the loaded event is sent from SpringRoll 2.
It is possible the event won't be sent if there's a problem, but that likely speaks to a larger issue in the game and we might not want to keep going regardless. Even with that possibility, slider based plugins in container won't send their values without the loaded event so this brings the mutes more inline with that behaviour.

## License

Copyright (c) 2022 [SpringRoll](http://github.com/SpringRoll)
Copyright (c) 2024 [SpringRoll](http://github.com/SpringRoll)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀 is this something we need to update in all the SpringRoll plugins?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be honest I have no idea. Its just something I update whenever I notice it

@902seanryan 902seanryan marked this pull request as ready for review January 31, 2024 18:34
@902seanryan 902seanryan merged commit b577287 into develop Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants