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:
Paul Kaplan 2018-07-18 15:01:22 -04:00
parent c428e2ec02
commit 7aa45ddb38

View file

@ -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);