mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Update the category info name when the extension is refreshed.
Fixes an issue where changing languages did not update the name in the category menu.
This commit is contained in:
parent
c428e2ec02
commit
7aa45ddb38
1 changed files with 1 additions and 0 deletions
|
@ -565,6 +565,7 @@ class Runtime extends EventEmitter {
|
||||||
let extensionBlocks = [];
|
let extensionBlocks = [];
|
||||||
for (const categoryInfo of this._blockInfo) {
|
for (const categoryInfo of this._blockInfo) {
|
||||||
if (extensionInfo.id === categoryInfo.id) {
|
if (extensionInfo.id === categoryInfo.id) {
|
||||||
|
categoryInfo.name = maybeFormatMessage(extensionInfo.name);
|
||||||
categoryInfo.blocks = [];
|
categoryInfo.blocks = [];
|
||||||
categoryInfo.menus = [];
|
categoryInfo.menus = [];
|
||||||
this._fillExtensionCategory(categoryInfo, extensionInfo);
|
this._fillExtensionCategory(categoryInfo, extensionInfo);
|
||||||
|
|
Loading…
Reference in a new issue