Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 585ccc8

Browse files
committed
[[ Bug 18915 ]] Allow a 'set the name of stack' step
When the name changes, we need to update all of the long IDs and then check if the wait condition is satisfied already
1 parent 1c40043 commit 585ccc8

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

Toolset/palettes/tutorial/revtutorial.livecodescript

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3425,7 +3425,13 @@ command revTutorialStackNameChanged pOldName, pNewName
34253425
-- are updated just call DoWait again with the current wait state.The
34263426
-- type/tag in the sWait array will resolve to the updated long ID
34273427
if sWait is not empty then
3428+
-- if new condition is immediately satisified (i.e. if we are waiting for a
3429+
-- stack name change) then sWaiting will still be false after revTutorialDoWait
3430+
put false into sWaiting
34283431
revTutorialDoWait sWait
3432+
if not sWaiting then
3433+
revTutorialWaitConditionSatisfied
3434+
end if
34293435
end if
34303436
end revTutorialStackNameChanged
34313437

notes/bugfix-18915.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Allow a 'set the name of stack' step in interactive tutorials

0 commit comments

Comments
 (0)