diff options
Diffstat (limited to 'atoidejouer/ui/toolbar.py')
-rw-r--r-- | atoidejouer/ui/toolbar.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/atoidejouer/ui/toolbar.py b/atoidejouer/ui/toolbar.py index 140565a..65be152 100644 --- a/atoidejouer/ui/toolbar.py +++ b/atoidejouer/ui/toolbar.py @@ -216,6 +216,9 @@ def _cb_back(widget, toolbar): toolbar._switch(toolbar.name.replace('_add', '')) # restore screen toolbar.activity._change_screen(toolbar) + # get screen now + _screen = toolbar.activity.get_current_screen() + _screen.scene.refresh() def _cb_import(widget, toolbar): @@ -225,16 +228,14 @@ def _cb_import(widget, toolbar): _screen = toolbar.activity.get_current_screen() # shortcut _filenames = _screen.sequence_preview.items - # and back - _cb_back(widget, toolbar) # add sequence to the story keys if toolbar.story_keys.add_sequence(_sequence_name, _filenames): + # screen name factory + _screen_name = toolbar.name.replace('_add', '') # get screen now - _screen = toolbar.activity.get_current_screen() + _screen = toolbar.activity.get_screen(_screen_name) # add sequence to the timeline _screen.timeline.add_sequence(_sequence_name) - # .. - _screen.scene.refresh() # already added else: pass |