1
0

Revert "Plugins: remove init_qt hook; clean up"

This reverts commit e20369bf94.
This commit is contained in:
ThomasV
2016-01-28 14:57:59 +01:00
parent a04b510395
commit 08e5aecee2
3 changed files with 16 additions and 14 deletions

View File

@@ -92,6 +92,7 @@ class ElectrumGui:
self.build_tray_menu()
self.tray.show()
self.app.connect(self.app, QtCore.SIGNAL('new_window'), self.start_new_window)
run_hook('init_qt', self)
def build_tray_menu(self):
# Avoid immediate GC of old menu when window closed via its action

View File

@@ -2941,6 +2941,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
p = plugins.toggle(name)
cb.setChecked(bool(p))
enable_settings_widget(p, name, i)
run_hook('init_qt', self.gui_object)
for i, descr in enumerate(plugins.descriptions.values()):
name = descr['__name__']