Skip to content

Conversation

@Kikketer
Copy link

@Kikketer Kikketer commented Feb 7, 2026

A simple modification and cleanup to allow saving as PNG and Github at the same time.

More than once I'd had a situation where I keep an application in github for version control, publishing, etc. but then also need the ease of sharing the PNG file for others to import and learn from.

SCR-20260207-jmkp SCR-20260207-iucc

Note: I don't see the whole picture, this modifies the root pxt framework so I would understand if this doesn't jive well with the other dependencies.

Note Note: I wasn't able to test this locally due to localhost and the github key handling where I'm not able to link github with localhost, I'm sure this path is possible to test but I'm not aware of how.

@riknoll riknoll self-assigned this Feb 9, 2026
@abchatra abchatra requested a review from Copilot February 12, 2026 23:10
@abchatra
Copy link
Collaborator

Thanks @Kikketer for contribution.


let downloadButtonClasses = "";
let saveButtonClasses = "";
if (isSaving) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the need for this section of code removal? If I remember correctly this so that kids don't smash bunch of buttons when saving is in progress.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables simultaneous saving of projects as both PNG files and to GitHub, removing the previous exclusivity between these two export options.

Changes:

  • Removed GitHub repository check that prevented PNG export for GitHub-linked projects
  • Cleaned up unused variables related to save/download button state management

Comment on lines 420 to 422
return <div id="editortools" className="ui" role="region" aria-label={lf("Editor toolbar")}>
<div id="downloadArea" role="menubar" className="ui column items">
{showCompileBtn && <div className="ui item portrait hide">
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removed variables downloadButtonClasses and saveButtonClasses appear to have been used for managing button states during save/compile operations. Verify that button state management (disabled/loading states) is handled elsewhere in the component to prevent users from triggering multiple simultaneous operations.

Copilot uses AI. Check for mistakes.
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.

3 participants