Mercurial > libervia-desktop-kivy
changeset 52:647f32d0a004
core: workaround issue happening when root widget is changed too quickly (during a transition)
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 11 Sep 2016 23:24:07 +0200 |
parents | 3f8599d9a766 |
children | 65775152aac1 |
files | src/cagou/core/cagou_main.py |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cagou/core/cagou_main.py Sun Sep 11 12:15:41 2016 +0200 +++ b/src/cagou/core/cagou_main.py Sun Sep 11 23:24:07 2016 +0200 @@ -158,11 +158,19 @@ def changeWidget(self, widget, screen_name="main"): """change main widget""" + if self._manager.transition.is_active: + # FIXME: workaround for what seems a Kivy bug + # TODO: report this upstream + self._manager.transition.stop() screen = self._manager.get_screen(screen_name) screen.clear_widgets() screen.add_widget(widget) def show(self, screen="main"): + if self._manager.transition.is_active: + # FIXME: workaround for what seems a Kivy bug + # TODO: report this upstream + self._manager.transition.stop() if self._manager.current == screen: return if screen == "main":