One can now click the back button in the show_xpub_and_add_cosigners wizard step
This commit is contained in:
committed by
ThomasV
parent
984da7515a
commit
fbc539e2cc
@@ -546,12 +546,12 @@ class BaseWizard(Logger):
|
|||||||
self.show_error(_('Cannot add this cosigner:') + '\n' + "Their key type is '%s', we are '%s'"%(t1, t2))
|
self.show_error(_('Cannot add this cosigner:') + '\n' + "Their key type is '%s', we are '%s'"%(t1, t2))
|
||||||
self.run('choose_keystore')
|
self.run('choose_keystore')
|
||||||
return
|
return
|
||||||
self.keystores.append(k)
|
if len(self.keystores) == 0:
|
||||||
if len(self.keystores) == 1:
|
|
||||||
xpub = k.get_master_public_key()
|
xpub = k.get_master_public_key()
|
||||||
self.reset_stack()
|
|
||||||
self.run('show_xpub_and_add_cosigners', xpub)
|
self.run('show_xpub_and_add_cosigners', xpub)
|
||||||
elif len(self.keystores) < self.n:
|
self.reset_stack()
|
||||||
|
self.keystores.append(k)
|
||||||
|
if len(self.keystores) < self.n:
|
||||||
self.run('choose_keystore')
|
self.run('choose_keystore')
|
||||||
else:
|
else:
|
||||||
self.run('create_wallet')
|
self.run('create_wallet')
|
||||||
@@ -641,7 +641,7 @@ class BaseWizard(Logger):
|
|||||||
raise NotImplementedError() # implemented by subclasses
|
raise NotImplementedError() # implemented by subclasses
|
||||||
|
|
||||||
def show_xpub_and_add_cosigners(self, xpub):
|
def show_xpub_and_add_cosigners(self, xpub):
|
||||||
self.show_xpub_dialog(xpub=xpub, run_next=lambda x: self.run('choose_keystore'))
|
self.show_xpub_dialog(xpub=xpub, run_next=lambda x: None)
|
||||||
|
|
||||||
def choose_seed_type(self, message=None, choices=None):
|
def choose_seed_type(self, message=None, choices=None):
|
||||||
title = _('Choose Seed type')
|
title = _('Choose Seed type')
|
||||||
|
|||||||
Reference in New Issue
Block a user