Skip to content

Commit

Permalink
WinApps: restore secure mode check.
Browse files Browse the repository at this point in the history
Because UIA handler wil be patched, do not allow the add-on to run in secure mode.
  • Loading branch information
josephsl committed Mar 6, 2025
1 parent 7990657 commit b7372ca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions addon/globalPlugins/winappObjs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@
# Adds handlers for various UIA controls found in Windows 10 and later.

import globalPluginHandler
import globalVars
import UIAHandler


# Don't even think about proceeding in secure screens.
def disableInSecureMode(cls):
return globalPluginHandler.GlobalPlugin if globalVars.appArgs.secure else cls


@disableInSecureMode
class GlobalPlugin(globalPluginHandler.GlobalPlugin):
def __init__(self):
super().__init__()
Expand Down

0 comments on commit b7372ca

Please sign in to comment.