Skip to content

Commit 51f1a9f

Browse files
Merge 536ac21 into a145895
2 parents a145895 + 536ac21 commit 51f1a9f

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

source/gui/addonGui.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -297,13 +297,22 @@ def onAddClick(self, evt):
297297
self.refreshAddonsList()
298298

299299
def onRemoveClick(self,evt):
300-
index=self.addonsList.GetFirstSelected()
301-
if index<0: return
302-
# Translators: Presented when attempting to remove the selected add-on.
303-
if gui.messageBox(_("Are you sure you wish to remove the selected add-on from NVDA?"),
300+
index = self.addonsList.GetFirstSelected()
301+
if index < 0:
302+
return
303+
addon = self.curAddons[index]
304+
if gui.messageBox(
305+
# Translators: Presented when attempting to remove the selected add-on.
306+
# {addon} is replaced with the add-on name.
307+
(_(
308+
"Are you sure you wish to remove the {addon} add-on from NVDA? "
309+
"This cannot be undone."
310+
)).format(addon=addon.name),
304311
# Translators: Title for message asking if the user really wishes to remove the selected Addon.
305-
_("Remove Add-on"), wx.YES_NO|wx.ICON_WARNING) != wx.YES: return
306-
addon=self.curAddons[index]
312+
_("Remove Add-on"),
313+
wx.YES_NO | wx.NO_DEFAULT | wx.ICON_WARNING
314+
) != wx.YES:
315+
return
307316
addon.requestRemove()
308317
self.refreshAddonsList(activeIndex=index)
309318
self.addonsList.SetFocus()

0 commit comments

Comments
 (0)