Skip to content
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

Merged
merged 4 commits into from
Sep 23, 2016
Merged

Minor speech viewer tweaks #6340

merged 4 commits into from
Sep 23, 2016

Conversation

feerrenrut
Copy link
Contributor

Fixes an issue where the NVDA menu speechviewer checkbox status does not reflect the actual visibility of the window:
Steps to reproduce:

  • Open speechviewer via menu
  • close via taskbar (or alt+F4)
  • look at nvda menu again, notice that speechviewer is still checked

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:

  • the speech viewer checkbox
  • the speech viewer position and size

When the speechviewer window is closed without using the NVDA menu, the
checkmark in the menu is now updated.
@feerrenrut
Copy link
Contributor Author

@jcsteh Would you mind taking a look at this?

if not isActive:
return
isActive=False
_onActiveChanged(isActive)
Copy link
Contributor

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.

@feerrenrut
Copy link
Contributor Author

@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.
Copy link
Contributor

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.

@jcsteh
Copy link
Contributor

jcsteh commented Sep 8, 2016

Ship it! :)

feerrenrut added a commit that referenced this pull request Sep 9, 2016
Merge branch 'minorSpeechViewerTweaks' into next
@nvaccessAuto nvaccessAuto assigned feerrenrut and unassigned jcsteh Sep 9, 2016
feerrenrut added a commit that referenced this pull request Sep 9, 2016
re issue #6101
Merge branch 'i6101_SymbolsListCtrl' into next
@feerrenrut feerrenrut merged commit b996b42 into master Sep 23, 2016
@nvaccessAuto nvaccessAuto added this to the 2016.4 milestone Sep 23, 2016
feerrenrut added a commit that referenced this pull request Sep 23, 2016
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)
@feerrenrut feerrenrut deleted the minorSpeechViewerTweaks branch January 17, 2020 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants