kivy: minor fixes

This commit is contained in:
ThomasV 2019-10-22 11:59:16 +02:00
parent b86b3ec1d1
commit 576fbbd074
2 changed files with 2 additions and 4 deletions

View file

@ -207,7 +207,7 @@ class ElectrumWindow(App):
self._trigger_update_history()
def on_request_status(self, event, key, status):
if key not in self.wallet.requests:
if key not in self.wallet.receive_requests:
return
self.update_tab('receive')
if self.request_popup and self.request_popup.key == key:

View file

@ -448,9 +448,7 @@ class ReceiveScreen(CScreen):
amount = self.app.get_amount(amount) if amount else 0
message = self.screen.message
if lightning:
payment_hash = self.app.wallet.lnworker.add_invoice(amount, message, self.expiry())
request, direction, is_paid = self.app.wallet.lnworker.invoices.get(payment_hash.hex())
key = payment_hash.hex()
key = self.app.wallet.lnworker.add_request(amount, message, self.expiry())
else:
addr = self.screen.address or self.app.wallet.get_unused_address()
if not addr: