[openpgp] Port to new confirmation dialog

This commit is contained in:
Philipp Hörist
2025-01-25 13:11:58 +01:00
parent e2de8dc09b
commit 9138bb540c
2 changed files with 4 additions and 5 deletions

View File

@@ -122,14 +122,13 @@ class KeyRow(Gtk.ListBoxRow):
self.destroy()
ConfirmationDialog(
_('Delete'),
_('Delete Public Key'),
_('Delete Public Key?'),
_('This will permanently delete this public key'),
[DialogButton.make('Cancel'),
DialogButton.make('Remove',
text=_('Delete'),
callback=_remove)],
transient_for=self.get_toplevel()).show()
).show()
def set_trust(self, trust):
icon_name, tooltip, css_class = TRUST_DATA[trust]