Skip to content
Snippets Groups Projects
Commit 39c19aa1 authored by inso's avatar inso
Browse files

Fixed a bug in network watching

parent fc9a5672
No related branches found
No related tags found
No related merge requests found
......@@ -251,7 +251,7 @@ class Application(QObject):
community.currency + '_network')
with open(network_path, 'w') as outfile:
data = community.jsonify_network()
data['network'] = community.jsonify_network()
data['version'] = __version__
json.dump(data, outfile, indent=4, sort_keys=True)
......
......@@ -31,7 +31,6 @@ class NetworkTabWidget(QWidget, Ui_NetworkTabWidget):
self.watcher_thread = QThread()
self.network_watcher.moveToThread(self.watcher_thread)
self.watcher_thread.started.connect(self.network_watcher.watch)
self.watcher_thread.start()
community.network.nodes_changed.connect(self.refresh_nodes)
......@@ -43,3 +42,7 @@ class NetworkTabWidget(QWidget, Ui_NetworkTabWidget):
self.network_watcher.deleteLater()
self.watcher_thread.deleteLater()
def showEvent(self, event):
super().showEvent(event)
self.watcher_thread.start()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment