def __init__(self):
super(GlobalPlugin, self).__init__()
# #20: don't even think about proceeding in secure screens (especially add-on updates).
if globalVars.appArgs.secure: return
self.prefsMenu = gui.mainFrame.sysTrayIcon.preferencesMenu
self.w10Settings = self.prefsMenu.Append(wx.ID_ANY, _("&Windows 10 App Essentials..."), _("Windows 10 App Essentials add-on settings"))
gui.mainFrame.sysTrayIcon.Bind(wx.EVT_MENU, w10config.onConfigDialog, self.w10Settings)
if w10config.canUpdate and config.conf["wintenApps"]["autoUpdateCheck"]:
# But not when NVDA itself is updating.
if not (globalVars.appArgs.install and globalVars.appArgs.minimal):
wx.CallAfter(w10config.autoUpdateCheck)
评论列表
文章目录