Skip to content

Commit

Permalink
Bug fix: don't remove the settings panel if in secure mode, because i…
Browse files Browse the repository at this point in the history
…t wasn't added!
  • Loading branch information
Luke Davis authored and Luke Davis committed May 2, 2022
1 parent bfbf68a commit 00c35c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion addon/globalPlugins/speechLogger/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def new_speak( # noqa: C901

def terminate(self):
# Remove the NVDA settings panel
gui.settingsDialogs.NVDASettingsDialog.categoryClasses.remove(SpeechLoggerSettings)
if not globalVars.appArgs.secure:
gui.settingsDialogs.NVDASettingsDialog.categoryClasses.remove(SpeechLoggerSettings)

def applyUserConfigIfNeeded(self):
"""If the user has changed any part of the configuration, reset our internals accordingly."""
Expand Down
2 changes: 1 addition & 1 deletion buildVars.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _(arg):
# Translators: Long description to be shown for this add-on on add-on information from add-ons manager
"addon_description": _("""Logs speech utterances to a file. Can also log NVDA remote session speech from the NVDA Remote add-on, to the same or another file."""),
# version
"addon_version": "22.1.1",
"addon_version": "22.1.2",
# Author(s)
"addon_author": "Luke Davis <XLTechie@newanswertech.com>, James Scholes",
# URL for the add-on documentation support
Expand Down

0 comments on commit 00c35c1

Please sign in to comment.