1
0

qml: open invoices list after saving invoice, add invoice to model instead of reloading the whole list

This commit is contained in:
Sander van Grieken
2022-10-05 11:07:40 +02:00
parent 090706bfd6
commit 488600788e
5 changed files with 17 additions and 4 deletions

View File

@@ -123,7 +123,7 @@ class QEInvoiceParser(QEInvoice):
_userinfo = ''
invoiceChanged = pyqtSignal()
invoiceSaved = pyqtSignal()
invoiceSaved = pyqtSignal([str], arguments=['key'])
validationSuccess = pyqtSignal()
validationWarning = pyqtSignal([str,str], arguments=['code', 'message'])
@@ -493,7 +493,7 @@ class QEInvoiceParser(QEInvoice):
# TODO detect duplicate?
self.key = self._effectiveInvoice.get_id()
self._wallet.wallet.save_invoice(self._effectiveInvoice)
self.invoiceSaved.emit()
self.invoiceSaved.emit(self.key)
class QEUserEnteredPayment(QEInvoice):