Browse Source

Add a menu action to force wallet refresh

Co-authored-by: Kristaps Kaupe <kristaps@blogiem.lv>
master
Wukong 4 years ago
parent
commit
f50fa4f74f
  1. 7
      scripts/joinmarket-qt.py

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

Loading…
Cancel
Save