1
0

Merge pull request #3782 from SomberNight/opt_wallet_get_address_index

Optimisations in wallet.py
This commit is contained in:
ThomasV
2018-01-30 01:06:44 +01:00
committed by GitHub
2 changed files with 28 additions and 11 deletions

View File

@@ -62,6 +62,7 @@ from .fee_slider import FeeSlider
from .util import *
from electrum.util import profiler
class StatusBarButton(QPushButton):
def __init__(self, icon, tooltip, func):
@@ -325,6 +326,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
self.print_error('close_wallet', self.wallet.storage.path)
run_hook('close_wallet', self.wallet)
@profiler
def load_wallet(self, wallet):
wallet.thread = TaskThread(self, self.on_error)
self.wallet = wallet