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 7, 2024
1 parent bff89c4 commit a2e8e53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -10474,6 +10474,7 @@ LibraryImportDialogMorph.prototype.importLibrary = function () {
// restore captured user-blocks categories
SpriteMorph.prototype.customCategories = this.originalCategories;

/*
if (this.hasCached(selectedLibrary)) {
this.cachedLibrary(selectedLibrary).forEach(def => {
def.receiver = ide.stage;
Expand All @@ -10485,6 +10486,7 @@ LibraryImportDialogMorph.prototype.importLibrary = function () {
);
ide.showMessage(`${localize('Imported')} ${libraryName}`, 2);
} else {
*/
ide.showMessage(`${localize('Loading')} ${libraryName}`);
ide.getURL(
ide.resourceURL('libraries', selectedLibrary),
Expand All @@ -10493,8 +10495,10 @@ LibraryImportDialogMorph.prototype.importLibrary = function () {
this.isLoadingLibrary = true;
}
);
/*
}
ide.refreshIDE();
ide.refreshIDE(); // +++ get rid of this
*/
};

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

0 comments on commit a2e8e53

Please sign in to comment.