Browse Source

Merge JoinMarket-Org/joinmarket-clientserver#1004: Add a menu action to force wallet refresh

f50fa4f74f Add a menu action to force wallet refresh (Wukong)

Pull request description:

  After https://github.com/JoinMarket-Org/joinmarket-clientserver/pull/942, the Qt wallet view is only updated when the callback is triggered.

  If, for some reason, the callback wasn't triggered properly, a user would have to close and re-open the Qt wallet to refresh the wallet.

  This PR adds a new menu action, "Refresh Wallet", so that in this rare case, a user can use this menu action to force a wallet refresh.

Top commit has no ACKs.

Tree-SHA512: 8f1ead71e7b5bd6bd93ab7af28efb5ee19e480c9051ed29457e21b3e6878dce205b6af24bcc3e09ddd239e78ea46c3490e4393102f0b9ce05cbeb660b1673f9a
master
Kristaps Kaupe 4 years ago
parent
commit
89ea8df91f
No known key found for this signature in database
GPG Key ID: 33E472FE870C7E5D
  1. 5
      scripts/joinmarket-qt.py

5
scripts/joinmarket-qt.py

@ -1459,8 +1459,11 @@ 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))
def openQRCodePopup(self, address):

Loading…
Cancel
Save