Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent a crash in the slider widget #1660

Merged
merged 1 commit into from
Dec 11, 2024
Merged

Conversation

felipeerias
Copy link
Collaborator

The Slider widget will throw an exception if we try to set a value which does not respect the current step size, and min and max values.

This can happen accidentally, for example when restoing the app's state from disk.

To prevent similar crashes in the future, this change ensures that the value is acceptable, and rounds and clamps it if necessary.

The Slider widget will throw an exception if we try to set a value
which does not respect the current step size, and min and max values.

This can happen accidentally, for example when restoing the app's
state from disk.

To prevent similar crashes in the future, this change ensures that
the value is acceptable, and rounds and clamps it if necessary.
@svillar svillar merged commit 71ec70e into main Dec 11, 2024
22 checks passed
@svillar svillar deleted the felipeerias/sliderValueCrash branch December 11, 2024 09:37
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.

2 participants