Fix crash in config widget by adding missing validate() method#11
Fix crash in config widget by adding missing validate() method#11osteotek merged 1 commit intocrosspoint-reader:masterfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (1)
📝 WalkthroughWalkthroughA Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Comment |
|
Here's a zip with the fixed widget until the bug is fixed in the main repo and release: |
This fixes an error when saving the devuce configuration dialog.
Calibre expects configuration widgets to implement a
validate()method.Since
CrossPointConfigWidgetdid not define it, closing the dialog raised an AttributeError:This prevents changes made in the widget from being saved.
This PR adds a minimal
validate()implementation that returns True, preventing the error and allowing the user to save the device config.