mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
kivy: remove update_completions
This commit is contained in:
parent
efc95307e2
commit
2d713e8b46
1 changed files with 1 additions and 15 deletions
|
@ -583,10 +583,9 @@ class ElectrumWindow(App):
|
||||||
self.exchanger.start()
|
self.exchanger.start()
|
||||||
return
|
return
|
||||||
self._trigger_update_status()
|
self._trigger_update_status()
|
||||||
if (self.wallet.up_to_date or not self.network or not self.network.is_connected()):
|
if self.wallet.up_to_date or not self.network or not self.network.is_connected():
|
||||||
self.update_history_tab()
|
self.update_history_tab()
|
||||||
self.update_contacts_tab()
|
self.update_contacts_tab()
|
||||||
self.update_completions()
|
|
||||||
|
|
||||||
def update_account_selector(self):
|
def update_account_selector(self):
|
||||||
# account selector
|
# account selector
|
||||||
|
@ -779,17 +778,6 @@ class ElectrumWindow(App):
|
||||||
self.from_list.addTopLevelItem(QTreeWidgetItem( [addr, balance] ))
|
self.from_list.addTopLevelItem(QTreeWidgetItem( [addr, balance] ))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def update_completions(self):
|
|
||||||
#TODO: check and remove if not used
|
|
||||||
l = []
|
|
||||||
for addr, label in self.wallet.labels.items():
|
|
||||||
if addr in self.wallet.addressbook:
|
|
||||||
l.append(label + ' <' + addr + '>')
|
|
||||||
|
|
||||||
#self.run_hook('update_completions', l)
|
|
||||||
self.completions = l
|
|
||||||
|
|
||||||
def protected(func):
|
def protected(func):
|
||||||
return lambda s, *args, **kwargs: s.do_protect(func, args, **kwargs)
|
return lambda s, *args, **kwargs: s.do_protect(func, args, **kwargs)
|
||||||
|
|
||||||
|
@ -1026,7 +1014,6 @@ class ElectrumWindow(App):
|
||||||
self.wallet.add_contact(address)
|
self.wallet.add_contact(address)
|
||||||
self.update_contacts_tab()
|
self.update_contacts_tab()
|
||||||
self.update_history_tab()
|
self.update_history_tab()
|
||||||
self.update_completions()
|
|
||||||
else:
|
else:
|
||||||
self.show_error(_('Invalid Address'))
|
self.show_error(_('Invalid Address'))
|
||||||
|
|
||||||
|
@ -1223,7 +1210,6 @@ class ElectrumWindow(App):
|
||||||
self.wallet.set_label(x, None)
|
self.wallet.set_label(x, None)
|
||||||
self.update_history_tab()
|
self.update_history_tab()
|
||||||
self.update_contacts_tab()
|
self.update_contacts_tab()
|
||||||
self.update_completions()
|
|
||||||
|
|
||||||
def show_error(self, error, width='200dp', pos=None, arrow_pos=None,
|
def show_error(self, error, width='200dp', pos=None, arrow_pos=None,
|
||||||
exit=False, icon='atlas://gui/kivy/theming/light/error', duration=0,
|
exit=False, icon='atlas://gui/kivy/theming/light/error', duration=0,
|
||||||
|
|
Loading…
Add table
Reference in a new issue