Skip to content

Commit 5a7bd13

Browse files
authored
make the file click compile rather than save as file as happens on live (microsoft#10435)
1 parent fdfd4a6 commit 5a7bd13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/editortoolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export class EditorToolbar extends data.Component<ISettingsProps, EditorToolbarS
200200
// Matching the tick in the call to compile() above for historical reasons
201201
pxt.tickEvent("editortools.download", { collapsed: this.getCollapsedState() }, { interactiveConsent: true });
202202
pxt.tickEvent("editortools.downloadasfile", { collapsed: this.getCollapsedState() }, { interactiveConsent: true });
203-
await (this.props.parent as ProjectView).saveProjectToFileAsync();
203+
(this.props.parent as ProjectView).compile();
204204
}
205205

206206
protected onPairClick = () => {

0 commit comments

Comments
 (0)