mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 02:35:20 +00:00
do not show send tab in seedless wallets
This commit is contained in:
parent
416a3bad09
commit
51036fdf4e
2 changed files with 9 additions and 5 deletions
|
@ -575,7 +575,8 @@ class ElectrumWindow:
|
||||||
|
|
||||||
self.notebook = gtk.Notebook()
|
self.notebook = gtk.Notebook()
|
||||||
self.create_history_tab()
|
self.create_history_tab()
|
||||||
self.create_send_tab()
|
if self.wallet.seed:
|
||||||
|
self.create_send_tab()
|
||||||
self.create_recv_tab()
|
self.create_recv_tab()
|
||||||
self.create_book_tab()
|
self.create_book_tab()
|
||||||
self.create_about_tab()
|
self.create_about_tab()
|
||||||
|
@ -672,7 +673,8 @@ class ElectrumWindow:
|
||||||
|
|
||||||
|
|
||||||
thread.start_new_thread(update_status_bar_thread, ())
|
thread.start_new_thread(update_status_bar_thread, ())
|
||||||
thread.start_new_thread(check_recipient_thread, ())
|
if self.wallet.seed:
|
||||||
|
thread.start_new_thread(check_recipient_thread, ())
|
||||||
self.notebook.set_current_page(0)
|
self.notebook.set_current_page(0)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -157,7 +157,8 @@ class ElectrumWindow(QMainWindow):
|
||||||
|
|
||||||
self.tabs = tabs = QTabWidget(self)
|
self.tabs = tabs = QTabWidget(self)
|
||||||
tabs.addTab(self.create_history_tab(), 'History')
|
tabs.addTab(self.create_history_tab(), 'History')
|
||||||
tabs.addTab(self.create_send_tab(), 'Send')
|
if self.wallet.seed:
|
||||||
|
tabs.addTab(self.create_send_tab(), 'Send')
|
||||||
tabs.addTab(self.create_receive_tab(), 'Receive')
|
tabs.addTab(self.create_receive_tab(), 'Receive')
|
||||||
tabs.addTab(self.create_contacts_tab(),'Contacts')
|
tabs.addTab(self.create_contacts_tab(),'Contacts')
|
||||||
tabs.addTab(self.create_wall_tab(), 'Wall')
|
tabs.addTab(self.create_wall_tab(), 'Wall')
|
||||||
|
@ -180,8 +181,9 @@ class ElectrumWindow(QMainWindow):
|
||||||
|
|
||||||
|
|
||||||
def connect_slots(self, sender):
|
def connect_slots(self, sender):
|
||||||
self.connect(sender, QtCore.SIGNAL('timersignal'), self.check_recipient)
|
if self.wallet.seed:
|
||||||
self.previous_payto_e=''
|
self.connect(sender, QtCore.SIGNAL('timersignal'), self.check_recipient)
|
||||||
|
self.previous_payto_e=''
|
||||||
|
|
||||||
def check_recipient(self):
|
def check_recipient(self):
|
||||||
if self.payto_e.hasFocus():
|
if self.payto_e.hasFocus():
|
||||||
|
|
Loading…
Add table
Reference in a new issue