commit dd0a93abd5fec2f2d06882502c78ee576b7d7def
parent c80aab7e20fbab49b13b39e4c32930b87c05d8fd
Author: ThomasV <thomasv@electrum.org>
Date: Mon, 9 Mar 2020 12:19:07 +0100
kivy: update screen in on_activate, remove dead code
Diffstat:
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/electrum/gui/kivy/uix/screens.py b/electrum/gui/kivy/uix/screens.py
@@ -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)
@@ -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')