Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add scripts to open Add-on Store and Advanced settings
  • Loading branch information
Cyrille Bougot
Cyrille Bougot committed Jun 23, 2025
commit 923a10d594ef4a7e4ba56c96a21dd2364dd693ae
18 changes: 18 additions & 0 deletions source/globalCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -3444,6 +3444,24 @@ def script_activateDocumentFormattingDialog(self, gesture):
def script_activateRemoteAccessSettings(self, gesture: "inputCore.InputGesture"):
wx.CallAfter(gui.mainFrame.onRemoteAccessSettingsCommand, None)

@script(
# Translators: Input help mode message for go to Add-on Store settings command.
description=_("Shows NVDA's Add-on Store settings"),
category=SCRCAT_CONFIG,
)
@gui.blockAction.when(gui.blockAction.Context.MODAL_DIALOG_OPEN)
def script_activateAddonStoreSettings(self, gesture: "inputCore.InputGesture"):
wx.CallAfter(gui.mainFrame.onAddonStoreSettingsCommand, None)

@script(
# Translators: Input help mode message for go to Advanced settings command.
description=_("Shows NVDA's Advanced settings"),
category=SCRCAT_CONFIG,
)
@gui.blockAction.when(gui.blockAction.Context.MODAL_DIALOG_OPEN)
def script_activateAdvancedSettings(self, gesture: "inputCore.InputGesture"):
wx.CallAfter(gui.mainFrame.onAdvancedSettingsCommand, None)

@script(
# Translators: Input help mode message for opening default dictionary dialog.
description=_("Shows the NVDA default dictionary dialog"),
Expand Down
14 changes: 12 additions & 2 deletions source/gui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@
# Be careful when removing, and only do in a compatibility breaking release.
from .exit import ExitDialog
from .settingsDialogs import (
AddonStorePanel,
AdvancedPanel,
AudioPanel,
VisionSettingsPanel,
BrailleDisplaySelectionDialog,
BrailleSettingsPanel,
BrowseModePanel,
Expand All @@ -61,13 +62,14 @@
NVDASettingsDialog,
ObjectPresentationPanel,
RemoteSettingsPanel,
ReviewCursorPanel,
SettingsDialog,
SpeechSettingsPanel,
SpeechSymbolsDialog,
SynthesizerSelectionDialog,
TouchInteractionPanel,
ReviewCursorPanel,
UwpOcrPanel,
VisionSettingsPanel,
)
from .startupDialogs import WelcomeDialog
from .inputGestures import InputGesturesDialog
Expand Down Expand Up @@ -373,13 +375,21 @@ def onBrowseModeCommand(self, evt):
def onDocumentFormattingCommand(self, evt):
self.popupSettingsDialog(NVDASettingsDialog, DocumentFormattingPanel)

@blockAction.when(blockAction.Context.SECURE_MODE)
def onAddonStoreSettingsCommand(self, evt):
Comment thread
seanbudd marked this conversation as resolved.
Outdated
self.popupSettingsDialog(NVDASettingsDialog, AddonStorePanel)

def onUwpOcrCommand(self, evt):
self.popupSettingsDialog(NVDASettingsDialog, UwpOcrPanel)

@blockAction.when(blockAction.Context.SECURE_MODE)
def onRemoteAccessSettingsCommand(self, evt):
self.popupSettingsDialog(NVDASettingsDialog, RemoteSettingsPanel)

@blockAction.when(blockAction.Context.SECURE_MODE)
def onAdvancedSettingsCommand(self, evt):
Comment thread
seanbudd marked this conversation as resolved.
Outdated
self.popupSettingsDialog(NVDASettingsDialog, AdvancedPanel)

@blockAction.when(blockAction.Context.SECURE_MODE)
def onSpeechSymbolsCommand(self, evt):
self.popupSettingsDialog(SpeechSymbolsDialog)
Expand Down