mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
Don't show create var getter in block contextmenu when in flyout
This commit is contained in:
@@ -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};
|
||||
|
||||
@@ -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
BIN
chromedriver/chromedriver
Executable file
Binary file not shown.
Reference in New Issue
Block a user