-
-
Notifications
You must be signed in to change notification settings - Fork 652
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
Message Dialog API take 2 #17582
Merged
Merged
Message Dialog API take 2 #17582
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…logButton` if provided
… rather than normal functions.
Mostly stylistic fixes. Co-authored-by: Sean Budd <sean@nvaccess.org>
Co-authored-by: Sean Budd <sean@nvaccess.org>
Co-authored-by: Sean Budd <sean@nvaccess.org>
# Conflicts: # user_docs/en/changes.md
…button press, but to have a callback property which is a callable suitable for passing to `runScriptModalDialog`.
seanbudd
approved these changes
Jan 6, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New changes look good
SaschaCowley
commented
Jan 6, 2025
SaschaCowley
added
the
conceptApproved
Similar 'triaged' for issues, PR accepted in theory, implementation needs review.
label
Jan 6, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
conceptApproved
Similar 'triaged' for issues, PR accepted in theory, implementation needs review.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Link to issue number:
Closes #13007
Closes #12344
Closes #12353
Summary of the issue:
This is the second PR to merge the message dialog API into NVDA. The previous merge was at
f437723
.See #17304 for full implementation details.
The original PR was reverted by #17561, due to #17553 and #17560.
Description of user facing changes
This PR does not, in itself, introduce any end-user facing changes. However, it lays the groundwork for closing a number of issues.
Tasks
Description of development approach
Restored
gui.nvdaControls.MessageDialog
inheriting fromContextHelpMixin
, which was accidentally lost.Changed
updateCheck.UpdateAskInstallDialog.onUpdateButton
andonPostponeButton
to simply end the modal, returning the appropriate code. Added a static method toUpdateAskInstallDialog
which returns a callback function which, when given the return code fromUpdateAskInstallDialog
, performs the appropriate action. Added a property method to generate this callback function given the attributes of the instance on which it is called.Testing strategy:
Created a portable copy of NVDA (
scons dist
), and tested running the CRFT:Added
updateVersionType="snapshot:alpha" to
source/versionInfo.py`, and tested updating with NVDA running from source:Known issues with pull request:
Code Review Checklist:
@coderabbitai summary