Desktop: Fixes #11823: Fixed cancel behavior labels when switching config screens - #14677
Conversation
…tching config screens
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis change replaces a simple confirmation dialog with an explicit message box offering "Save changes" and "Discard changes" options in ConfigScreen. Logic is added to check the user's selection (answer === 0) before proceeding with saving settings. Changes
Suggested labels
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
Looks good, thank you! |
…tching config screens (laurent22#14677)
Problem
When a user has unsaved changes in the Configuration screen and tries to switch to another screen (like "Keyboard Shortcuts"), a confirmation dialog appears. Previously, the buttons were "OK" and "Cancel", which was highly misleading as discussed in issue #11823.
Solution
I replaced
shim.showConfirmationDialogwithshim.showMessageBoxinConfigScreen.tsx. This allows the use of custom button labels. The buttons are now explicitly labeled "Save changes" and "Discard changes", making the UI much clearer and resolving the confusion.Test Plan
Manual verification steps:
Here is the screenshot of the new UI:
Registrazione.schermo.2026-03-10.alle.11.46.42.mov