Don't show create var getter in block contextmenu when in flyout

This commit is contained in:
Sam El-Husseini
2018-03-27 23:40:54 -07:00
parent b296ffebd0
commit 134b32fe56
3 changed files with 6 additions and 0 deletions

View File

@@ -261,6 +261,9 @@ Blockly.Constants.Loops.CUSTOM_CONTEXT_MENU_CREATE_VARIABLES_GET_MIXIN = {
* @this Blockly.Block
*/
customContextMenu: function(options) {
if (this.isInFlyout){
return;
}
var varName = this.getFieldValue('VAR');
if (!this.isCollapsed() && varName != null) {
var option = {enabled: true};

View File

@@ -355,6 +355,9 @@ Blockly.Blocks['procedures_defnoreturn'] = {
* @this Blockly.Block
*/
customContextMenu: function(options) {
if (this.isInFlyout){
return;
}
// Add option to create caller.
var option = {enabled: true};
var name = this.getFieldValue('NAME');

BIN
chromedriver/chromedriver Executable file

Binary file not shown.