Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormike <michael.jmontcalm@gmail.com>2009-12-09 08:51:35 (GMT)
committer mike <michael.jmontcalm@gmail.com>2009-12-09 08:51:35 (GMT)
commitfec67ef8f8a25f37854b1fe121d29899418542b7 (patch)
treede841c17aaa32fdb31ef5d37343ca36fb7388b11
parentb8b04164332bc7c77565c4557c5df3dbfddb4647 (diff)
Revert "display end of tutorial message at the current activity when saving"
Reverting since we do not know the full details of this commit. This reverts commit 23767d621dbcdbb1ff0f0cadc55d015ef03f3116.
-rw-r--r--tutorius/creator.py18
1 files changed, 8 insertions, 10 deletions
diff --git a/tutorius/creator.py b/tutorius/creator.py
index edebdfd..92344d2 100644
--- a/tutorius/creator.py
+++ b/tutorius/creator.py
@@ -113,6 +113,14 @@ class Creator(Object):
self._tutorial.update_transition(
transition_name=self._tutorial.INITIAL_TRANSITION_NAME,
new_state=self._state)
+ final_event = addon.create(
+ name='MessageButtonNext',
+ message=T('This is the end of this tutorial.')
+ )
+ self._tutorial.add_transition(
+ state_name=self._state,
+ transition=(final_event, self._tutorial.END),
+ )
else:
self._tutorial = tutorial
# TODO load existing tutorial; unused yet
@@ -420,16 +428,6 @@ class Creator(Object):
Save the currently edited tutorial to bundle, prompting for
a name as needed.
"""
- final_event = addon.create(
- name='MessageButtonNext',
- message=T('This is the end of this tutorial.')
- )
- final_event.source = self._probe_mgr.currentActivity
- self._tutorial.add_transition(
- state_name=self._state,
- transition=(final_event, self._tutorial.END),
- )
-
if not self._metadata[vault.INI_NAME_PROPERTY]:
dlg = TextInputDialog(parent=self._overview.win,
text=T("Enter a tutorial title."),