Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do Not Expand Sim After Tutorial in Headless Mode #9644

Merged

Conversation

thsparks
Copy link
Contributor

@thsparks thsparks commented Aug 18, 2023

When a tutorial ends and the user clicks "Done" to go to the main code editor, we were calling into expandSimulator, which will open the sidebar even when we don't have an actual simulator to show. This change prevents that call if we're in headless mode (i.e. no simulator).

I considered putting this check inside expandSimulator so it no-oped there 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.

Fixes https://github.com/microsoft/pxt-minecraft/issues/2323

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.
@thsparks thsparks requested a review from a team August 18, 2023 17:05
@thsparks thsparks merged commit dcb00b5 into master Aug 18, 2023
7 checks passed
@thsparks thsparks deleted the thsparks/minecraft/fix_code_editor_layout_after_tutorial branch August 18, 2023 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants