From f50fa4f74fda96fdb3a7af08b7f65de9141656a3 Mon Sep 17 00:00:00 2001 From: Wukong Date: Sun, 5 Sep 2021 19:14:36 -0700 Subject: [PATCH] Add a menu action to force wallet refresh Co-authored-by: Kristaps Kaupe --- scripts/joinmarket-qt.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/joinmarket-qt.py b/scripts/joinmarket-qt.py index 73751e2..7f26c05 100755 --- a/scripts/joinmarket-qt.py +++ b/scripts/joinmarket-qt.py @@ -1459,9 +1459,12 @@ class JMWalletTab(QWidget): menu.addAction("Copy extended public key to clipboard", lambda: app.clipboard().setText(xpub), shortcut=QKeySequence(QKeySequence.Copy)) + menu.addAction("Refresh wallet", + lambda: mainWindow.updateWalletInfo(None, "all"), + shortcut=QKeySequence(QKeySequence.Refresh)) + #TODO add more items to context menu - if address_valid or xpub_exists: - menu.exec_(self.walletTree.viewport().mapToGlobal(position)) + menu.exec_(self.walletTree.viewport().mapToGlobal(position)) def openQRCodePopup(self, address): bip21_uri = btc.encode_bip21_uri(address, {})