mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 08:51:32 +00:00
remove gap setting from gui; this should be modified by conscious users only.
This commit is contained in:
parent
5af496ceb5
commit
12e19d3408
1 changed files with 1 additions and 4 deletions
|
@ -191,7 +191,7 @@ def run_settings_dialog(wallet, is_create, is_recovery, parent):
|
||||||
seed_box.show()
|
seed_box.show()
|
||||||
vbox.pack_start(seed_box, False, False, 5)
|
vbox.pack_start(seed_box, False, False, 5)
|
||||||
|
|
||||||
if is_recovery or (not is_create):
|
if is_recovery:
|
||||||
gap = gtk.HBox()
|
gap = gtk.HBox()
|
||||||
gap_label = gtk.Label('Gap limit:')
|
gap_label = gtk.Label('Gap limit:')
|
||||||
gap_label.set_size_request(150,10)
|
gap_label.set_size_request(150,10)
|
||||||
|
@ -251,7 +251,6 @@ def run_settings_dialog(wallet, is_create, is_recovery, parent):
|
||||||
seed = mnemonic.mn_decode( seed.split(' ') )
|
seed = mnemonic.mn_decode( seed.split(' ') )
|
||||||
if not is_create:
|
if not is_create:
|
||||||
fee = fee_entry.get_text()
|
fee = fee_entry.get_text()
|
||||||
gap = gap_entry.get_text()
|
|
||||||
|
|
||||||
dialog.destroy()
|
dialog.destroy()
|
||||||
if r==gtk.RESPONSE_CANCEL:
|
if r==gtk.RESPONSE_CANCEL:
|
||||||
|
@ -270,7 +269,6 @@ def run_settings_dialog(wallet, is_create, is_recovery, parent):
|
||||||
gap = int(gap)
|
gap = int(gap)
|
||||||
if not is_create:
|
if not is_create:
|
||||||
fee = int( 100000000 * Decimal(fee) )
|
fee = int( 100000000 * Decimal(fee) )
|
||||||
gap = int(gap)
|
|
||||||
except:
|
except:
|
||||||
show_message("error")
|
show_message("error")
|
||||||
return
|
return
|
||||||
|
@ -283,7 +281,6 @@ def run_settings_dialog(wallet, is_create, is_recovery, parent):
|
||||||
wallet.gap_limit = gap
|
wallet.gap_limit = gap
|
||||||
if not is_create:
|
if not is_create:
|
||||||
wallet.fee = fee
|
wallet.fee = fee
|
||||||
wallet.gap_limit = gap
|
|
||||||
wallet.save()
|
wallet.save()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue