mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 23:41:35 +00:00
Implements feature to copy mpk to your clipboard to the lite gui, fixes #51
This commit is contained in:
parent
76d2d1d729
commit
a296350994
1 changed files with 9 additions and 2 deletions
|
@ -270,8 +270,6 @@ class MiniWindow(QDialog):
|
||||||
|
|
||||||
electrum_menu.addSeparator()
|
electrum_menu.addSeparator()
|
||||||
|
|
||||||
brain_seed = electrum_menu.addAction(_("&BrainWallet Info"))
|
|
||||||
brain_seed.triggered.connect(self.actuator.show_seed_dialog)
|
|
||||||
quit_option = electrum_menu.addAction(_("&Quit"))
|
quit_option = electrum_menu.addAction(_("&Quit"))
|
||||||
quit_option.triggered.connect(self.close)
|
quit_option.triggered.connect(self.close)
|
||||||
|
|
||||||
|
@ -283,6 +281,9 @@ class MiniWindow(QDialog):
|
||||||
|
|
||||||
export_csv = extra_menu.addAction( _("&Export transactions to CSV") )
|
export_csv = extra_menu.addAction( _("&Export transactions to CSV") )
|
||||||
export_csv.triggered.connect(self.actuator.csv_transaction)
|
export_csv.triggered.connect(self.actuator.csv_transaction)
|
||||||
|
|
||||||
|
master_key = extra_menu.addAction( _("Copy master public key to clipboard") )
|
||||||
|
master_key.triggered.connect(self.actuator.copy_master_public_key)
|
||||||
|
|
||||||
expert_gui = view_menu.addAction(_("&Classic GUI"))
|
expert_gui = view_menu.addAction(_("&Classic GUI"))
|
||||||
expert_gui.triggered.connect(expand_callback)
|
expert_gui.triggered.connect(expand_callback)
|
||||||
|
@ -842,6 +843,12 @@ class MiniActuator:
|
||||||
"""Check if bitcoin address is valid."""
|
"""Check if bitcoin address is valid."""
|
||||||
return self.wallet.is_valid(address)
|
return self.wallet.is_valid(address)
|
||||||
|
|
||||||
|
def copy_master_public_key(self):
|
||||||
|
master_pubkey = self.wallet.master_public_key
|
||||||
|
qApp.clipboard().setText(master_pubkey)
|
||||||
|
QMessageBox.information(None,"Copy succesful", "Your public master key has been copied to your clipboard.")
|
||||||
|
|
||||||
|
|
||||||
def acceptbit(self, currency):
|
def acceptbit(self, currency):
|
||||||
master_pubkey = self.wallet.master_public_key
|
master_pubkey = self.wallet.master_public_key
|
||||||
url = "http://acceptbit.com/mpk/%s/%s" % (master_pubkey, currency)
|
url = "http://acceptbit.com/mpk/%s/%s" % (master_pubkey, currency)
|
||||||
|
|
Loading…
Add table
Reference in a new issue