1
0

kivy: disable amount and description buttons if payment request is signed

This commit is contained in:
ThomasV
2016-02-18 15:40:13 +01:00
parent e297bf81a2
commit fd0e5739e2
5 changed files with 19 additions and 15 deletions

View File

@@ -101,6 +101,9 @@ class PaymentRequest:
self.memo = self.details.memo
self.payment_url = self.details.payment_url
def is_pr(self):
return self.get_outputs() != [(TYPE_ADDRESS, self.get_requestor(), self.get_amount())]
def verify(self, contacts):
if not self.raw:
self.error = "Empty request"
@@ -455,9 +458,6 @@ class InvoiceStore(object):
def add(self, pr):
key = pr.get_id()
if key in self.invoices:
print_error('invoice already in list')
return key
self.invoices[key] = pr
self.save()
return key