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

Shadowsocks config: Prevent the clearing of the SingleChoiceList custom value field from clobbering its value #7252

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

acb-mv
Copy link
Contributor

@acb-mv acb-mv commented Nov 28, 2024

A subtle bug in event handling in SingleChoiceList meant that, when the user selected a non-custom value after editing the custom field, when the custom field was blanked, it would then be interpreted as a change of value, overriding the user's choice and breaking the list. This fixes this, only changing the value if the field is non-empty or the previous value was a custom value. In doing this, it fixes a bug in the Shadowsocks port selection view.


This change is Reviewable

@acb-mv acb-mv added the iOS Issues related to iOS label Nov 28, 2024
@acb-mv acb-mv self-assigned this Nov 28, 2024
Copy link

linear bot commented Nov 28, 2024

Copy link
Contributor

@rablador rablador left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Contributor

@buggmagnet buggmagnet left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@buggmagnet buggmagnet force-pushed the IOS-953-shadowsocks-port-selector-bug branch from 6823f48 to aa1b5a1 Compare November 28, 2024 12:38
@buggmagnet buggmagnet merged commit aac6336 into main Nov 28, 2024
11 checks passed
@buggmagnet buggmagnet deleted the IOS-953-shadowsocks-port-selector-bug branch November 28, 2024 12:40
Copy link

🚨 End to end tests failed. Please check the failed workflow run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iOS Issues related to iOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants