diff options
Diffstat (limited to 'tutorius/creator.py')
-rw-r--r-- | tutorius/creator.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tutorius/creator.py b/tutorius/creator.py index 2de21ac..9b1b9bf 100644 --- a/tutorius/creator.py +++ b/tutorius/creator.py @@ -224,6 +224,10 @@ class Creator(Object): @param state_name: the name of the state to use as insertion point """ + # Check if already in state to avoid reinstalling actions needlessly + if self._state == state_name: + return + # first is not modifiable, as the auto transition would make changes # pointless. The end state is also pointless to modify, as the tutorial # gets detached. |