Delete account from config if registration fails
This commit is contained in:
parent
6baed38d4c
commit
cf8f0c2e83
|
@ -2370,6 +2370,8 @@ class AccountCreationWizardWindow:
|
||||||
elif cur_page == 4:
|
elif cur_page == 4:
|
||||||
if self.account in app.connections:
|
if self.account in app.connections:
|
||||||
del app.connections[self.account]
|
del app.connections[self.account]
|
||||||
|
if self.account in app.config.get_per('accounts'):
|
||||||
|
app.config.del_per('accounts', self.account)
|
||||||
self.notebook.set_current_page(2)
|
self.notebook.set_current_page(2)
|
||||||
self.xml.get_object('form_vbox').remove(self.data_form_widget)
|
self.xml.get_object('form_vbox').remove(self.data_form_widget)
|
||||||
elif cur_page == 6: # finish page
|
elif cur_page == 6: # finish page
|
||||||
|
|
Loading…
Reference in New Issue