From 7003a2dfa1a4abaa306497ced7817f5474edb218 Mon Sep 17 00:00:00 2001 From: joungtao Date: Sun, 1 Aug 2021 09:40:22 +0800 Subject: [PATCH] bug fixed: missing "Create a function" button in flyout while "newFunctions" option is true --- core/toolbox.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/toolbox.js b/core/toolbox.js index 31fd3962e..1fb7387f0 100644 --- a/core/toolbox.js +++ b/core/toolbox.js @@ -185,7 +185,9 @@ Blockly.Toolbox.prototype.init = function() { oneBasedIndex: workspace.options.oneBasedIndex, horizontalLayout: workspace.horizontalLayout, toolboxPosition: workspace.options.toolboxPosition, - renderer: workspace.options.renderer + renderer: workspace.options.renderer, + // pxt-blockly: pass the newFunctions option + newFunctions: workspace.options.newFunctions }); if (workspace.horizontalLayout) { if (!Blockly.HorizontalFlyout) {