Skip to content

Commit

Permalink
Merge pull request #5 from marlon-sousa/hotfix/disable-addon-on-secur…
Browse files Browse the repository at this point in the history
…e-screens

disable addon on secure screens
  • Loading branch information
marlon-sousa authored Aug 12, 2021
2 parents 434cd24 + 32355cc commit 8afb47e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions addon/globalPlugins/EnhancedDictionaries/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):

def __init__(self, *args, **kwargs):
super(GlobalPlugin, self).__init__(*args, **kwargs)
if globalVars.appArgs.secure:
log.info("EnhancedDictionaries addon will not activate on secure screens")
return
self.injectProcessing()

# the method below is responsible for modifying NVDA behavior.
Expand Down
2 changes: 1 addition & 1 deletion buildVars.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def _(x): return x
"addon_description": _("""This addon introduces better dictionaries handling for NVDA.
It is now possible to use profile specific dictionaries, which eenables better productivity by allowing you to use different dictionaries for different applications and scenarius."""),
# version
"addon_version": "1.2.0",
"addon_version": "1.2.1",
# Author(s)
"addon_author": u"Marlon Brandão de Sousa <[email protected]>",
# URL for the add-on documentation support
Expand Down
5 changes: 5 additions & 0 deletions localdeploy.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@echo off
rem obtaining addon name, the current directory name
for %%f in (%cd%) do set addon=%%~nxf
rem copying addon files to local nvda addon directory
robocopy /S addon %appdata%\nvda\addons\%addon%

0 comments on commit 8afb47e

Please sign in to comment.