Skip to content

Commit

Permalink
Update gui.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoenig committed Aug 8, 2024
1 parent c129d28 commit 65a6f3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -10475,6 +10475,7 @@ LibraryImportDialogMorph.prototype.importLibrary = function () {
SpriteMorph.prototype.customCategories = this.originalCategories;

if (this.hasCached(selectedLibrary)) {
console.log('CACHED Lib')
this.cachedLibrary(selectedLibrary).forEach(def => {
def.receiver = ide.stage;
ide.stage.globalBlocks.push(def);
Expand All @@ -10485,6 +10486,7 @@ LibraryImportDialogMorph.prototype.importLibrary = function () {
);
ide.showMessage(`${localize('Imported')} ${libraryName}`, 2);
} else {
console.log('UNCACHED Lib')
ide.showMessage(`${localize('Loading')} ${libraryName}`);
ide.getURL(
ide.resourceURL('libraries', selectedLibrary),
Expand All @@ -10494,7 +10496,7 @@ LibraryImportDialogMorph.prototype.importLibrary = function () {
}
);
}
ide.refreshIDE();
// ide.refreshIDE();
};

LibraryImportDialogMorph.prototype.displayBlocks = function (libraryKey) {
Expand Down

0 comments on commit 65a6f3c

Please sign in to comment.