[openpgp] Don’t show wizard twice

This commit is contained in:
lovetox
2022-04-18 21:18:13 +02:00
parent d1e63e2797
commit 1ecf2f390d

View File

@@ -171,10 +171,10 @@ class NewKeyPage(RequestPage):
def finished(self, error): def finished(self, error):
if error is None: if error is None:
self._assistant.set_current_page(Page.SUCCESS)
self._con.get_module('OpenPGP').get_own_key_details() self._con.get_module('OpenPGP').get_own_key_details()
self._con.get_module('OpenPGP').set_public_key() self._con.get_module('OpenPGP').set_public_key()
self._con.get_module('OpenPGP').request_keylist() self._con.get_module('OpenPGP').request_keylist()
self._assistant.set_current_page(Page.SUCCESS)
else: else:
error_page = self._assistant.get_nth_page(Page.ERROR) error_page = self._assistant.get_nth_page(Page.ERROR)
error_page.set_text(error) error_page.set_text(error)