1
0

restore invoices_label and requests_label. move paytomany and toggle_qr_window from main menu to toolbar

This commit is contained in:
ThomasV
2023-03-11 18:08:00 +01:00
parent d6a65a06a7
commit 5ad4023e7d
5 changed files with 15 additions and 7 deletions

View File

@@ -146,11 +146,13 @@ class SendTab(QWidget, MessageBoxMixin, Logger):
self.set_onchain(False)
self.invoices_label = QLabel(_('Invoices'))
from .invoice_list import InvoiceList
self.invoice_list = InvoiceList(self)
self.toolbar = self.invoice_list.create_toolbar_with_menu(
_('Invoices'),
'',
[
(_("&Pay to many"), self.paytomany),
(_("Import invoices"), self.window.import_invoices),
(_("Export invoices"), self.window.export_invoices),
])
@@ -162,9 +164,10 @@ class SendTab(QWidget, MessageBoxMixin, Logger):
hbox.addStretch(1)
vbox = QVBoxLayout(self)
vbox.addLayout(self.toolbar)
vbox.addLayout(hbox)
vbox.addStretch(1)
vbox.addLayout(self.toolbar)
vbox.addWidget(self.invoices_label)
vbox.addWidget(self.invoice_list)
vbox.setStretchFactor(self.invoice_list, 1000)
self.searchable_list = self.invoice_list