refresh category buttons when turning built-in extensions on and off

snap7
jmoenig 2021-11-23 12:41:57 +01:00
rodzic ef070b37e6
commit 9025d2bc77
2 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -66,6 +66,7 @@
### 2021-11-23 ### 2021-11-23
* byob: refresh category buttons when hiding / showing blocks * byob: refresh category buttons when hiding / showing blocks
* gui: refresh category buttons when switching to dev mode and back * gui: refresh category buttons when switching to dev mode and back
* gui: refresh category buttons when turning built-in extensions on and off
### 2021-11-19 ### 2021-11-19
* objects, byob, gui: visually indicate empty categories by half-toning their buttons * objects, byob, gui: visually indicate empty categories by half-toning their buttons

Wyświetl plik

@ -3834,6 +3834,7 @@ IDE_Morph.prototype.settingsMenu = function () {
Process.prototype.enableJS = !Process.prototype.enableJS; Process.prototype.enableJS = !Process.prototype.enableJS;
this.flushBlocksCache('operators'); this.flushBlocksCache('operators');
this.refreshPalette(); this.refreshPalette();
this.categories.refreshEmpty();
}, },
Process.prototype.enableJS, Process.prototype.enableJS,
'uncheck to disable support for\nnative JavaScript functions', 'uncheck to disable support for\nnative JavaScript functions',
@ -3849,6 +3850,7 @@ IDE_Morph.prototype.settingsMenu = function () {
!SpriteMorph.prototype.showingExtensions; !SpriteMorph.prototype.showingExtensions;
this.flushBlocksCache('variables'); this.flushBlocksCache('variables');
this.refreshPalette(); this.refreshPalette();
this.categories.refreshEmpty();
}, },
SpriteMorph.prototype.showingExtensions, SpriteMorph.prototype.showingExtensions,
'uncheck to hide extension\nprimitives in the palette', 'uncheck to hide extension\nprimitives in the palette',
@ -4067,6 +4069,7 @@ IDE_Morph.prototype.settingsMenu = function () {
!SpriteMorph.prototype.enableFirstClass; !SpriteMorph.prototype.enableFirstClass;
this.flushBlocksCache('sensing'); this.flushBlocksCache('sensing');
this.refreshPalette(); this.refreshPalette();
this.categories.refreshEmpty();
}, },
SpriteMorph.prototype.enableFirstClass, SpriteMorph.prototype.enableFirstClass,
'uncheck to disable support\nfor first-class sprites', 'uncheck to disable support\nfor first-class sprites',
@ -4140,6 +4143,7 @@ IDE_Morph.prototype.settingsMenu = function () {
!Process.prototype.enableCompiling; !Process.prototype.enableCompiling;
this.flushBlocksCache('operators'); this.flushBlocksCache('operators');
this.refreshPalette(); this.refreshPalette();
this.categories.refreshEmpty();
}, },
Process.prototype.enableCompiling, Process.prototype.enableCompiling,
'EXPERIMENTAL! uncheck to disable live\nsupport for compiling', 'EXPERIMENTAL! uncheck to disable live\nsupport for compiling',
@ -4169,6 +4173,7 @@ IDE_Morph.prototype.settingsMenu = function () {
!StageMorph.prototype.enableCodeMapping; !StageMorph.prototype.enableCodeMapping;
this.flushBlocksCache('variables'); this.flushBlocksCache('variables');
this.refreshPalette(); this.refreshPalette();
this.categories.refreshEmpty();
}, },
StageMorph.prototype.enableCodeMapping, StageMorph.prototype.enableCodeMapping,
'uncheck to disable\nblock to text mapping features', 'uncheck to disable\nblock to text mapping features',
@ -4182,6 +4187,7 @@ IDE_Morph.prototype.settingsMenu = function () {
!StageMorph.prototype.enableInheritance; !StageMorph.prototype.enableInheritance;
this.flushBlocksCache('variables'); this.flushBlocksCache('variables');
this.refreshPalette(); this.refreshPalette();
this.categories.refreshEmpty();
}, },
StageMorph.prototype.enableInheritance, StageMorph.prototype.enableInheritance,
'uncheck to disable\nsprite inheritance features', 'uncheck to disable\nsprite inheritance features',