This commit is contained in:
Kovid Goyal 2016-11-04 10:51:49 +05:30
parent 46a560925d
commit 876d5c78ea

View File

@ -751,8 +751,11 @@ class Preferences(QDialog):
if key.endswith('_again') and tprefs.get(key) is False:
del tprefs[key]
changed += 1
info_dialog(self, _('Disabled confirmations restored'), _(
'%d disabled confirmation prompts were restored') % changed, show=True)
msg = _('There are no disabled confirmation prompts')
if changed:
msg = ngettext(
'One disabled confirmation prompt was restored', '{} disabled confirmation prompts were restored', changed).format(changed)
info_dialog(self, _('Disabled confirmations restored'), msg, show=True)
def accept(self):
tprefs.set('preferences_geom', bytearray(self.saveGeometry()))