File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments