electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 2d713e8b46a5a58c311bd1c464cd0ec36d3c661f
parent efc95307e21be83de3400f5554a1a22445e078e9
Author: ThomasV <thomasv@electrum.org>
Date:   Fri,  4 Sep 2015 09:48:43 +0200

kivy: remove update_completions

Diffstat:
Mgui/kivy/main_window.py | 16+---------------
1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/gui/kivy/main_window.py b/gui/kivy/main_window.py @@ -583,10 +583,9 @@ class ElectrumWindow(App): self.exchanger.start() return 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_contacts_tab() - self.update_completions() def update_account_selector(self): # account selector @@ -779,17 +778,6 @@ class ElectrumWindow(App): 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): return lambda s, *args, **kwargs: s.do_protect(func, args, **kwargs) @@ -1026,7 +1014,6 @@ class ElectrumWindow(App): self.wallet.add_contact(address) self.update_contacts_tab() self.update_history_tab() - self.update_completions() else: self.show_error(_('Invalid Address')) @@ -1223,7 +1210,6 @@ class ElectrumWindow(App): self.wallet.set_label(x, None) self.update_history_tab() self.update_contacts_tab() - self.update_completions() def show_error(self, error, width='200dp', pos=None, arrow_pos=None, exit=False, icon='atlas://gui/kivy/theming/light/error', duration=0,