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, {})