kivy fix: remove app.current_invoice
This commit is contained in:
parent
526c6c88f7
commit
aee11fc945
|
@ -180,7 +180,6 @@ class ElectrumWindow(App):
|
||||||
self.nfcscanner = None
|
self.nfcscanner = None
|
||||||
self.tabs = None
|
self.tabs = None
|
||||||
self.is_exit = False
|
self.is_exit = False
|
||||||
self.current_invoice = None
|
|
||||||
|
|
||||||
super(ElectrumWindow, self).__init__(**kwargs)
|
super(ElectrumWindow, self).__init__(**kwargs)
|
||||||
|
|
||||||
|
@ -223,9 +222,8 @@ class ElectrumWindow(App):
|
||||||
if pr.has_expired():
|
if pr.has_expired():
|
||||||
self.show_error(_('Payment request has expired'))
|
self.show_error(_('Payment request has expired'))
|
||||||
else:
|
else:
|
||||||
self.current_invoice = pr
|
|
||||||
self.update_tab('send')
|
|
||||||
self.switch_to('send')
|
self.switch_to('send')
|
||||||
|
self.send_screen.set_request(pr)
|
||||||
else:
|
else:
|
||||||
self.show_error("invoice error:" + pr.error)
|
self.show_error("invoice error:" + pr.error)
|
||||||
self.send_screen.do_clear()
|
self.send_screen.do_clear()
|
||||||
|
|
|
@ -192,8 +192,7 @@ class SendScreen(CScreen):
|
||||||
self.screen.amount = self.app.format_amount_and_units(amount)
|
self.screen.amount = self.app.format_amount_and_units(amount)
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
if self.app.current_invoice:
|
pass
|
||||||
self.set_request(self.app.current_invoice)
|
|
||||||
|
|
||||||
def do_clear(self):
|
def do_clear(self):
|
||||||
self.screen.amount = ''
|
self.screen.amount = ''
|
||||||
|
|
Loading…
Reference in New Issue