From 5e6ecf172ce9cdf1f578c38c061e36997605e433 Mon Sep 17 00:00:00 2001 From: Thomas Sparks Date: Thu, 17 Aug 2023 16:48:33 -0700 Subject: [PATCH] Do Not Expand Sim After Tutorial in Headless Mode I considered putting this check inside expandSimulator so it no-oped if we're in headless mode, but I think this may still be used to see the file explorer in javascript mode, so I left that untouched for now. --- webapp/src/app.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/app.tsx b/webapp/src/app.tsx index 78d809a23d83..dafc9cd99e7a 100644 --- a/webapp/src/app.tsx +++ b/webapp/src/app.tsx @@ -4658,7 +4658,7 @@ export class ProjectView return this.loadHeaderAsync(curr); }).finally(() => { core.hideLoading("leavingtutorial") - if (this.state.collapseEditorTools) { + if (this.state.collapseEditorTools && !pxt.appTarget.simulator.headless) { this.expandSimulator(); } this.postTutorialProgress();