simplification

This commit is contained in:
ThomasV 2012-11-20 18:19:37 +01:00
parent d55aa43cf6
commit 9a9e7c1b7c
6 changed files with 1 additions and 11 deletions

View file

@ -224,8 +224,6 @@ if __name__ == '__main__':
gui.create_wallet()
interface.register_callback('peers', gui.server_list_changed)
verifier = WalletVerifier(interface, config)
wallet.set_verifier(verifier)
WalletSynchronizer(wallet, config).start()

View file

@ -1252,9 +1252,6 @@ class ElectrumGui():
def restore_or_create(self):
return restore_create_dialog(self.wallet)
def server_list_changed(self):
pass
def seed_dialog(self):
# ask for seed and gap.
return run_recovery_dialog( self.wallet )

View file

@ -886,7 +886,6 @@ class ElectrumGui:
interface.register_callback('disconnected', update_callback)
interface.register_callback('disconnecting', update_callback)
def server_list_changed(self): pass
def main(self, url):
s = 'main'

View file

@ -89,6 +89,7 @@ class ElectrumGui(QObject):
self.config = config
self.check_qt_version()
self.app = QApplication(sys.argv)
self.wallet.interface.register_callback('peers', self.server_list_changed)
def check_qt_version(self):

View file

@ -1539,9 +1539,6 @@ class ElectrumGui:
if app is None:
self.app = QApplication(sys.argv)
def server_list_changed(self):
pass
def restore_or_create(self):
msg = _("Wallet file not found.")+"\n"+_("Do you want to create a new wallet, or to restore an existing one?")

View file

@ -42,8 +42,6 @@ class ElectrumGui:
self.tab_names = [_("History"), _("Send"), _("Receive"), _("Contacts"), _("Wall")]
self.num_tabs = len(self.tab_names)
def server_list_changed(self):
pass
def restore_or_create(self):
pass