tkivy: update screen in on_activate, remove dead code - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit dd0a93abd5fec2f2d06882502c78ee576b7d7def DIR parent c80aab7e20fbab49b13b39e4c32930b87c05d8fd HTML Author: ThomasV <thomasv@electrum.org> Date: Mon, 9 Mar 2020 12:19:07 +0100 kivy: update screen in on_activate, remove dead code Diffstat: M electrum/gui/kivy/uix/screens.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) --- DIR diff --git a/electrum/gui/kivy/uix/screens.py b/electrum/gui/kivy/uix/screens.py t@@ -61,16 +61,6 @@ class CScreen(Factory.Screen): kvname = None app = App.get_running_app() # type: ElectrumWindow - def _change_action_view(self): - app = App.get_running_app() - action_bar = app.root.manager.current_screen.ids.action_bar - _action_view = self.action_view - - if (not _action_view) or _action_view.parent: - return - action_bar.clear_widgets() - action_bar.add_widget(_action_view) - def on_enter(self): # FIXME: use a proper event don't use animation time of screen Clock.schedule_once(lambda dt: self.dispatch('on_activate'), .25) t@@ -81,7 +71,7 @@ class CScreen(Factory.Screen): def on_activate(self): setattr(self.app, self.kvname + '_screen', self) - #Clock.schedule_once(lambda dt: self._change_action_view()) + self.update() def on_leave(self): self.dispatch('on_deactivate')