1
0

Exchange rate plugin fixes for multiple windows

This should be enough to keep everything working that was working
before.  The plugin itself needs a lot more work to fix existing
bugs and be sane.
This commit is contained in:
Neil Booth
2015-09-02 20:34:40 +09:00
parent 992c70a688
commit f2fb856f1c
5 changed files with 123 additions and 109 deletions

View File

@@ -201,6 +201,7 @@ class ElectrumGui:
self.start_new_window(self.config, full_path)
def new_window(self, path):
# Use a signal as can be called from daemon thread
self.app.emit(SIGNAL('new_window'), self.config, path)
def start_new_window(self, config, path=None):
@@ -215,6 +216,7 @@ class ElectrumGui:
if not wallet:
return
w = ElectrumWindow(config, self.network, self)
run_hook('new_window', w)
w.connect_slots(self.timer)
# load new wallet in gui