Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions electrum/gui/qt/receive_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ def on_receive_swap():
self.update_view_button()
self.toolbar.insertWidget(2, self.toggle_view_button)
# menu
menu.addConfig(self.config.cv.WALLET_BOLT11_FALLBACK, callback=self.on_toggle_bolt11_fallback)
menu.addConfig(self.config.cv.WALLET_BIP21_LIGHTNING, callback=self.update_current_request)
# menu.addConfig(self.config.cv.WALLET_BOLT11_FALLBACK, callback=self.on_toggle_bolt11_fallback)
# menu.addConfig(self.config.cv.WALLET_BIP21_LIGHTNING, callback=self.update_current_request)
self.qr_menu_action = menu.addToggle(_("Show detached QR code window"), self.window.toggle_qr_window)
menu.addAction(_("Import requests"), self.window.import_requests)
menu.addAction(_("Export requests"), self.window.export_requests)
Expand Down Expand Up @@ -198,12 +198,12 @@ def expiry_dialog(self):
self.config.WALLET_PAYREQ_EXPIRY_SECONDS = v
self.update_expiry_text()

def on_toggle_bolt11_fallback(self):
if not self.wallet.lnworker:
return
self.wallet.lnworker.clear_invoices_cache()
self.update_current_request()

# def on_toggle_bolt11_fallback(self):
# if not self.wallet.lnworker:
# return
# self.wallet.lnworker.clear_invoices_cache()
# self.update_current_request()
def update_view_button(self):
i = self.config.GUI_QT_RECEIVE_TABS_INDEX
if i == 0:
Expand Down