From f8dab46a4b0bd8c814ed0a04e968f1f24af92c96 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Mon, 25 Jun 2018 01:02:21 +0200 Subject: [PATCH] kivy: fix fork detection gui --- gui/kivy/main_window.py | 8 ++++---- lib/network.py | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gui/kivy/main_window.py b/gui/kivy/main_window.py index cfb163470..11eced5f7 100644 --- a/gui/kivy/main_window.py +++ b/gui/kivy/main_window.py @@ -113,12 +113,12 @@ class ElectrumWindow(App): chains = self.network.get_blockchains() def cb(name): for index, b in self.network.blockchains.items(): - if name == self.network.get_blockchain_name(b): + if name == b.get_name(): self.network.follow_chain(index) - #self.block names = [self.network.blockchains[b].get_name() for b in chains] - if len(names) >1: - ChoiceDialog(_('Choose your chain'), names, '', cb).open() + if len(names) > 1: + cur_chain = self.network.blockchain().get_name() + ChoiceDialog(_('Choose your chain'), names, cur_chain, cb).open() use_rbf = BooleanProperty(False) def on_use_rbf(self, instance, x): diff --git a/lib/network.py b/lib/network.py index 403615bdd..b2c6f1329 100644 --- a/lib/network.py +++ b/lib/network.py @@ -558,6 +558,7 @@ class Network(util.DaemonThread): self.send_subscriptions() self.set_status('connected') self.notify('updated') + self.notify('interfaces') @with_interface_lock def close_interface(self, interface):