kivy: add on_dismiss method to crash reporter dialog
This commit is contained in:
@@ -626,7 +626,7 @@ class ElectrumWindow(App, Logger):
|
||||
self.daemon.add_wallet(wallet)
|
||||
self.load_wallet(wallet)
|
||||
|
||||
def on_wizard_aborted(self, wizard):
|
||||
def on_wizard_aborted(self):
|
||||
# wizard did not return a wallet; and there is no wallet open atm
|
||||
if not self.wallet:
|
||||
self.stop()
|
||||
|
||||
@@ -131,6 +131,9 @@ class CrashReporter(BaseCrashReporter, Factory.Popup):
|
||||
self.open_url(response["location"])
|
||||
self.dismiss()
|
||||
|
||||
def on_dismiss(self):
|
||||
self.main_window.on_wizard_aborted()
|
||||
|
||||
def open_url(self, url):
|
||||
if platform != 'android':
|
||||
return
|
||||
|
||||
@@ -1071,7 +1071,7 @@ class InstallWizard(BaseWizard, Widget):
|
||||
try: os.unlink(self.path)
|
||||
except FileNotFoundError: pass
|
||||
self.reset_stack()
|
||||
self.confirm_dialog(message=_('Wallet creation failed'), run_next=self.app.on_wizard_aborted)
|
||||
self.confirm_dialog(message=_('Wallet creation failed'), run_next=lambda x: self.app.on_wizard_aborted())
|
||||
|
||||
def choice_dialog(self, **kwargs):
|
||||
choices = kwargs['choices']
|
||||
|
||||
Reference in New Issue
Block a user