diff options
Diffstat (limited to 'activity.py')
-rw-r--r-- | activity.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/activity.py b/activity.py index 2cc4574..7add340 100644 --- a/activity.py +++ b/activity.py @@ -238,16 +238,19 @@ class AToiDeJouerActivity(activity.Activity): else: # update current screen name self._current = toolbar.name if name is None else name - # init splash - if self._current in ['graphics', 'sounds']: + # already exist + if self._current in self._screens: + self.__idle_change(toolbar) + # create new screen + elif self._current in ['graphics', 'sounds']: if self.__splash is None: self.__splash = screens.Splash(toolbar) else: self.__splash._show() # ... glib.idle_add(partial(self.__idle_change, toolbar)) + # .. default else: - # .. self.__idle_change(toolbar) def __idle_change(self, toolbar): |