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.daemon.add_wallet(wallet)
|
||||||
self.load_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
|
# wizard did not return a wallet; and there is no wallet open atm
|
||||||
if not self.wallet:
|
if not self.wallet:
|
||||||
self.stop()
|
self.stop()
|
||||||
|
|||||||
@@ -131,6 +131,9 @@ class CrashReporter(BaseCrashReporter, Factory.Popup):
|
|||||||
self.open_url(response["location"])
|
self.open_url(response["location"])
|
||||||
self.dismiss()
|
self.dismiss()
|
||||||
|
|
||||||
|
def on_dismiss(self):
|
||||||
|
self.main_window.on_wizard_aborted()
|
||||||
|
|
||||||
def open_url(self, url):
|
def open_url(self, url):
|
||||||
if platform != 'android':
|
if platform != 'android':
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1071,7 +1071,7 @@ class InstallWizard(BaseWizard, Widget):
|
|||||||
try: os.unlink(self.path)
|
try: os.unlink(self.path)
|
||||||
except FileNotFoundError: pass
|
except FileNotFoundError: pass
|
||||||
self.reset_stack()
|
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):
|
def choice_dialog(self, **kwargs):
|
||||||
choices = kwargs['choices']
|
choices = kwargs['choices']
|
||||||
|
|||||||
Reference in New Issue
Block a user