electrum

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

commit 9e3314f17dbdbd0180999aa8b050f5b006703fa6
parent f7293694cc45e8950e4824b89196c35b74beaac8
Author: ThomasV <thomasv@electrum.org>
Date:   Sat, 28 May 2016 16:00:28 +0200

move set_account_expanded

Diffstat:
Mgui/qt/address_list.py | 6+++++-
Mgui/qt/main_window.py | 4----
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/gui/qt/address_list.py b/gui/qt/address_list.py @@ -161,8 +161,12 @@ class AddressList(MyTreeWidget): def create_account_menu(self, position, k, item): menu = QMenu() exp = item.isExpanded() - menu.addAction(_("Minimize") if exp else _("Maximize"), lambda: self.parent.account_set_expanded(item, k, not exp)) + menu.addAction(_("Minimize") if exp else _("Maximize"), lambda: self.set_account_expanded(item, k, not exp)) menu.addAction(_("Rename"), lambda: self.parent.edit_account_label(k)) if self.wallet.seed_version > 4: menu.addAction(_("View details"), lambda: self.parent.show_account_details(k)) menu.exec_(self.viewport().mapToGlobal(position)) + + def set_account_expanded(self, item, k, b): + item.setExpanded(b) + self.accounts_expanded[k] = b diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py @@ -1446,10 +1446,6 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): self.wallet.set_label(k,label) self.address_list.update() - def account_set_expanded(self, item, k, b): - item.setExpanded(b) - self.accounts_expanded[k] = b - def get_coins(self): if self.pay_from: return self.pay_from