-
-
Notifications
You must be signed in to change notification settings - Fork 633
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
Minor speech viewer tweaks #6340
Conversation
When the speechviewer window is closed without using the NVDA menu, the checkmark in the menu is now updated.
@jcsteh Would you mind taking a look at this? |
if not isActive: | ||
return | ||
isActive=False | ||
_onActiveChanged(isActive) |
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.
I understand the desire to use dependency injection here, rather than calling a global. However, I'm concerned that some external code might call activate
and not pass a callable, thus breaking the invariant that the check box should be checked while the Speech Viewer is open and unchecked when it's closed. There are ways we can redesign this to be a bit cleaner, but for now, I think calling gui.mainFrame.onSpeechViewerEnabled
is clearer.
@jcsteh Mind taking another look at this one? |
isActive=False | ||
|
||
def activate(onActiveChanged = lambda isNowActive: None): | ||
def activate(): | ||
""" | ||
Function to call to trigger the speech viewer window to open. | ||
onActiveChanged - function object that takes a boolean which is true if the speechviewer is active or false if it is no longer active. |
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.
nit: This parameter has been removed, but still in docstring.
Ship it! :) |
After being closed via the task bar or the alt+F4 shortcut, the speech viewer checkbox status in the NVDA menu will now reflect the actual visibility of the window. (#6340)
Fixes an issue where the NVDA menu speechviewer checkbox status does not reflect the actual visibility of the window:
Steps to reproduce:
Modified the change log for the "speech viewer on startup" feature to include information on how to use this feature.
User guide changes, include information about: