# HG changeset patch # User Goffi # Date 1473629047 -7200 # Node ID 647f32d0a004757ecffefcbd0de76dd3967efacc # Parent 3f8599d9a76604fc5233d7fb3c490ffa7fb584c1 core: workaround issue happening when root widget is changed too quickly (during a transition) diff -r 3f8599d9a766 -r 647f32d0a004 src/cagou/core/cagou_main.py --- 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":