Skip to content

Remove UIAHandler.isUIAAvailable, as it is always available#10571

Merged
feerrenrut merged 4 commits into
nvaccess:masterfrom
LeonarddeR:UIAAlwaysAvailable
Dec 4, 2019
Merged

Remove UIAHandler.isUIAAvailable, as it is always available#10571
feerrenrut merged 4 commits into
nvaccess:masterfrom
LeonarddeR:UIAAlwaysAvailable

Conversation

@LeonarddeR

@LeonarddeR LeonarddeR commented Dec 3, 2019

Copy link
Copy Markdown
Collaborator

Link to issue number:

Split from #9968
Fixes #10300

Summary of the issue:

In Windows XP and possibly older versions of Vista, UIA was not always available. Therefore,, the UIAHandler contained logic to deal with UIA not available.

Description of how this pull request fixes the issue:

UIAHandler.isUIAAvailable has been removed, since it was always True, i.e. it depended on the comtypes wrapper being available. We only imported the contents of the comtypes wrapper when UIAHandler.isUIAAvailable was True. Code that used UIAHandler.isUIAAvailable now uses uiaHandler.handler or simply assumes that UIA is always there.

This is a necessary change for #9968, as Sphinx won't run otherwise.
More importantly though, while disabling UIA on ALPHA seemed to fail on my system, it no longer does now.

Testing performed:

Tested running from source, with UIA enabled and disabled from config.

Known issues with pull request:

None

Change log entry:

  • Changes for developers
    • UIAHandler.isUIAAvailable has been removed.

@AppVeyorBot

Copy link
Copy Markdown

PR introduces Flake8 errors 😲

See test results for Failed build of commit 633196bf9a

@lukaszgo1

Copy link
Copy Markdown
Contributor

This PR also closes #10300. Thanks @LeonarddeR

@LeonarddeR

Copy link
Copy Markdown
Collaborator Author

Thanks for pointing this out.

Comment thread source/UIAHandler.py Outdated
Co-Authored-By: Reef Turner <[email protected]>
@feerrenrut
feerrenrut merged commit ae5027d into nvaccess:master Dec 4, 2019
@nvaccessAuto nvaccessAuto added this to the 2019.3 milestone Dec 4, 2019
@LeonarddeR
LeonarddeR deleted the UIAAlwaysAvailable branch August 23, 2025 06:27
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.

NVDA is not working when UIA disabled in the configuration

5 participants