mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 01:11:35 +00:00
Freeze button in GTK receive tab.
This commit is contained in:
parent
3c6808468e
commit
7e5cad5452
1 changed files with 15 additions and 0 deletions
15
gui/gtk.py
15
gui/gtk.py
|
@ -1060,6 +1060,21 @@ class ElectrumWindow:
|
|||
button.show()
|
||||
hbox.pack_start(button,False)
|
||||
|
||||
if is_recv:
|
||||
button = gtk.Button("Freeze")
|
||||
def freeze_address(w, treeview, liststore, wallet):
|
||||
path, col = treeview.get_cursor()
|
||||
if path:
|
||||
address = liststore.get_value( liststore.get_iter(path), 0)
|
||||
if address in wallet.frozen_addresses:
|
||||
wallet.unfreeze(address)
|
||||
else:
|
||||
wallet.freeze(address)
|
||||
self.update_receiving_tab()
|
||||
button.connect("clicked", freeze_address, treeview, liststore, self.wallet)
|
||||
button.show()
|
||||
hbox.pack_start(button,False)
|
||||
|
||||
if not is_recv:
|
||||
button = gtk.Button("Pay to")
|
||||
def payto(w, treeview, liststore):
|
||||
|
|
Loading…
Add table
Reference in a new issue