Skip to content

Commit 2a0c5cc

Browse files
authored
Merge 80b6754 into e80d782
2 parents e80d782 + 80b6754 commit 2a0c5cc

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

source/brailleTables.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,8 @@ def _loadTablesFromManifestSection(source: str, directory: str, tablesDict: dict
855855

856856

857857
def initialize():
858+
if config.isAppX or globalVars.appArgs.disableAddons:
859+
return
858860
# The builtin tables were added at import time to the parent map.
859861
# Now, add the custom tables to the first map.
860862
import addonHandler
@@ -890,7 +892,7 @@ def initialize():
890892
return
891893
if (res := manifest.validate(Validator(), preserve_errors=True)) is not True:
892894
raise ValueError(f"Errors in scratchpad manifest: {flatten_errors(manifest, res)}")
893-
log.debug(f"Found {len(tablesDict)} braille table entries in manifest for scratchpad")
895+
log.debug(f"Found {len(section)} braille table entries in manifest for scratchpad")
894896
_loadTablesFromManifestSection(TableSource.SCRATCHPAD, directory, section)
895897
except Exception:
896898
log.exception(

user_docs/en/changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ Specifically, MathML inside of span and other elements that have the attribute `
8181
In any document, if the cursor is on the last line, it will be moved to the end when using this command.
8282
(#17251, #17430, @nvdaes)
8383
* In web browsers, changes to text selection no longer sometimes fail to be reported in editable text controls. (#17501, @jcsteh)
84+
* Custom braille tables in the developer scratchpad are now properly ignored when running with add-ons disabled. (#17565, @LeonarddeR)
8485

8586
### Changes for Developers
8687

0 commit comments

Comments
 (0)