Skip to content

Commit 8ed6ab2

Browse files
authored
Merge 02ba923 into ad5666b
2 parents ad5666b + 02ba923 commit 8ed6ab2

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

source/gui/__init__.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,8 @@ def onRevertToDefaultConfigurationCommand(self,evt):
151151
# Translators: Reported when configuration has been restored to defaults by using restore configuration to factory defaults item in NVDA menu.
152152
queueHandler.queueFunction(queueHandler.eventQueue,ui.message,_("Configuration restored to factory defaults"))
153153

154+
@blockAction.when(blockAction.Context.SECURE_MODE)
154155
def onSaveConfigurationCommand(self,evt):
155-
if globalVars.appArgs.secure:
156-
# Translators: Reported when an action cannot be performed because NVDA is in a secure screen
157-
queueHandler.queueFunction(queueHandler.eventQueue, ui.message, _("Not available in secure context"))
158-
return
159156
try:
160157
config.conf.save()
161158
# Translators: Reported when current configuration has been saved.
@@ -285,6 +282,7 @@ def onAboutCommand(self,evt):
285282
# Translators: The title of the dialog to show about info for NVDA.
286283
messageBox(versionInfo.aboutMessage, _("About NVDA"), wx.OK)
287284

285+
@blockAction.when(blockAction.Context.SECURE_MODE)
288286
def onCheckForUpdateCommand(self, evt):
289287
updateCheck.UpdateChecker().check()
290288

@@ -340,8 +338,8 @@ def onReloadPluginsCommand(self, evt):
340338
NVDAObject.clearDynamicClassCache()
341339

342340
@blockAction.when(
343-
blockAction.Context.MODAL_DIALOG_OPEN,
344341
blockAction.Context.SECURE_MODE,
342+
blockAction.Context.MODAL_DIALOG_OPEN,
345343
)
346344
def onCreatePortableCopyCommand(self,evt):
347345
self.prePopup()
@@ -351,16 +349,16 @@ def onCreatePortableCopyCommand(self,evt):
351349
self.postPopup()
352350

353351
@blockAction.when(
354-
blockAction.Context.MODAL_DIALOG_OPEN,
355352
blockAction.Context.SECURE_MODE
353+
blockAction.Context.MODAL_DIALOG_OPEN,
356354
)
357355
def onInstallCommand(self, evt):
358356
from gui import installerGui
359357
installerGui.showInstallGui()
360358

361359
@blockAction.when(
362-
blockAction.Context.MODAL_DIALOG_OPEN,
363360
blockAction.Context.SECURE_MODE
361+
blockAction.Context.MODAL_DIALOG_OPEN,
364362
)
365363
def onRunCOMRegistrationFixesCommand(self, evt):
366364
if messageBox(

0 commit comments

Comments
 (0)