Skip to content

Commit

Permalink
Prevent extensions page from being triggered unintentionally (#10374)
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-robert authored Feb 7, 2025
1 parent 988b24e commit 7d35ec1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/src/monacoSnippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,14 +558,15 @@ function cachedBuiltinCategories(): pxt.Map<BuiltinCategoryDefinition> {
};
_cachedBuiltinCategories[CategoryNameID.Extensions] = {
name: pxt.toolbox.addPackageTitle(),
nameid: 'addpackage',
nameid: CategoryNameID.Extensions,
blocks: [],
custom: true,
customClick: (theEditor: monaco.Editor) => {
theEditor.closeFlyout();
theEditor.showPackageDialog();
return true;
},
onlyTriggerOnClick: true,
attributes: {
advanced: false,
weight: -1,
Expand Down

0 comments on commit 7d35ec1

Please sign in to comment.