tweaked hiding / showing inherited local blocks

snap7
jmoenig 2021-10-08 14:02:47 +02:00
rodzic 5eaef5b65d
commit 4f3cd192cc
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -43,6 +43,7 @@
* objects: tweaked variable block visibility
* objects: filter hidden blocks out from search / keyboard input results
* objects: prevent deprecated "message" reporter from showing up in search results
* objects: tweaked hiding / showing inherited local blocks
### 2021-10-07
* objects, byob: new BlockVisibilityDialogMorph for bulk-selecting blocks to hide / show in the palette

Wyświetl plik

@ -3167,7 +3167,7 @@ SpriteMorph.prototype.isHidingBlock = function (aBlock) {
if (aBlock.isCustomBlock) {
return (
aBlock.isGlobal ? aBlock.definition
: this.getLocalMethod(aBlock.semanticSpec)
: this.getMethod(aBlock.semanticSpec)
).isHelper;
}
if (aBlock.selector === 'reportGetVar') {
@ -3182,7 +3182,7 @@ SpriteMorph.prototype.changeBlockVisibility = function (aBlock, hideIt, quick) {
var ide, dict, cat;
if (aBlock.isCustomBlock) {
(aBlock.isGlobal ? aBlock.definition
: this.getLocalMethod(aBlock.semanticSpec)
: this.getMethod(aBlock.semanticSpec)
).isHelper = !!hideIt;
} else if (aBlock.selector === 'reportGetVar') {
this.variables.find(