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

Commit c21d46b

Browse files
authored
Merge pull request #1617 from livecode/feature-startcenter_tutorial_Chooser
[[ StartCenter ]] Go back to tutorials pane when tutorial ended
2 parents d5b1920 + 135064a commit c21d46b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Toolset/palettes/start center/revStartCenterBehavior.livecodescript

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,10 +532,21 @@ command tutorialStart pTutorial
532532
lock screen
533533
revIDEStartTutorial "First Run", pTutorial, "App Lesson"
534534
revIDESetPreference "StartCenterClassic", "true"
535+
revIDESubscribe "ideTutorialProgressChanged"
535536
startCenterClose
536537
unlock screen
537538
end tutorialStart
538539

540+
on ideTutorialProgressChanged
541+
if revIDETutorialInProgress() is empty then
542+
revIDEUnsubscribe "ideTutorialProgressChanged"
543+
lock screen
544+
revIDEOpenPalette "start center"
545+
startCenterAction "interactive_welcome"
546+
unlock screen
547+
end if
548+
end ideTutorialProgressChanged
549+
539550
## Banner
540551
command bannerInitialise
541552
set the top of group "recentFiles" to 0

0 commit comments

Comments
 (0)