Skip to content
New issue

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

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

Already on GitHub? # to your account

Check knob and button IDs separately for conflicts #105

Merged
merged 3 commits into from
Nov 8, 2024
Merged

Conversation

jni
Copy link
Member

@jni jni commented Nov 7, 2024

Closes #104

As noted in #104 (comment), the validator attempts to ensure that the knob and button IDs are unique jointly, but the IDs of the knobs and those of the buttons actually overlap in the controller (see the controller definition here).

This PR therefore removes the Pydantic requirement for the button IDs to not clash with the knob IDs.

@jni
Copy link
Member Author

jni commented Nov 7, 2024

@Czaki I think this is ready for review. 🙏

Copy link
Collaborator

@Czaki Czaki left a comment

Choose a reason for hiding this comment

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

Looks good and works as expected

@jni jni merged commit d851237 into napari:main Nov 8, 2024
10 checks passed
@jni jni deleted the knob-ids branch November 8, 2024 01:14
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

More than one button should be able to be assigned to an action
2 participants