save invoices
This commit is contained in:
@@ -42,6 +42,7 @@ class PayToEdit(QTextEdit):
|
||||
self.c = None
|
||||
self.textChanged.connect(self.check_text)
|
||||
self.outputs = []
|
||||
self.is_pr = False
|
||||
|
||||
def lock_amount(self):
|
||||
self.amount_edit.setFrozen(True)
|
||||
@@ -54,8 +55,10 @@ class PayToEdit(QTextEdit):
|
||||
self.setStyleSheet(frozen_style if b else normal_style)
|
||||
|
||||
def setGreen(self):
|
||||
self.is_pr = True
|
||||
self.setStyleSheet("QWidget { background-color:#00ff00;}")
|
||||
|
||||
|
||||
def parse_address_and_amount(self, line):
|
||||
x, y = line.split(',')
|
||||
address = self.parse_address(x)
|
||||
@@ -77,6 +80,9 @@ class PayToEdit(QTextEdit):
|
||||
|
||||
|
||||
def check_text(self):
|
||||
if self.is_pr:
|
||||
return
|
||||
|
||||
# filter out empty lines
|
||||
lines = filter( lambda x: x, self.lines())
|
||||
outputs = []
|
||||
|
||||
Reference in New Issue
Block a user