Skip to content
Merged
Changes from all commits
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
8 changes: 4 additions & 4 deletions source/gui/addonGui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#A part of NonVisual Desktop Access (NVDA)
#This file is covered by the GNU General Public License.
#See the file COPYING for more details.
#Copyright (C) 2012-2016 NV Access Limited, Beqa Gozalishvili, Joseph Lee
#Copyright (C) 2012-2016 NV Access Limited, Beqa Gozalishvili, Joseph Lee, Babbage B.V.

import os
import wx
Expand Down Expand Up @@ -60,7 +60,7 @@ def __init__(self,parent):
self.helpButton.Bind(wx.EVT_BUTTON,self.onHelp)
entryButtonsSizer.Add(self.helpButton)
# Translators: The label for a button in Add-ons Manager dialog to enable or disable the selected add-on.
self.enableDisableButton=wx.Button(self,label=_("Disable add-on"))
self.enableDisableButton=wx.Button(self,label=_("&Disable add-on"))
self.enableDisableButton.Disable()
self.enableDisableButton.Bind(wx.EVT_BUTTON,self.onEnableDisable)
entryButtonsSizer.Add(self.enableDisableButton)
Expand Down Expand Up @@ -227,7 +227,7 @@ def onListItemSelected(self, evt):
# #3090: Change toggle button label to indicate action to be taken if clicked.
if addon is not None:
# Translators: The label for a button in Add-ons Manager dialog to enable or disable the selected add-on.
self.enableDisableButton.SetLabel(_("Enable add-on") if not self._shouldDisable(addon) else _("Disable add-on"))
self.enableDisableButton.SetLabel(_("&Enable add-on") if not self._shouldDisable(addon) else _("&Disable add-on"))
self.aboutButton.Enable(addon is not None and not addon.isPendingRemove)
self.helpButton.Enable(bool(addon is not None and not addon.isPendingRemove and addon.getDocFilePath()))
self.enableDisableButton.Enable(addon is not None and not addon.isPendingRemove)
Expand Down Expand Up @@ -282,7 +282,7 @@ def onEnableDisable(self, evt):
shouldDisable = self._shouldDisable(addon)
# Counterintuitive, but makes sense when context is taken into account.
addon.enable(not shouldDisable)
self.enableDisableButton.SetLabel(_("Enable add-on") if shouldDisable else _("Disable add-on"))
self.enableDisableButton.SetLabel(_("&Enable add-on") if shouldDisable else _("&Disable add-on"))
self.refreshAddonsList(activeIndex=index)

def onGetAddonsClick(self,evt):
Expand Down