From ee6a783f9ed5d90bad366d75dd3e86aa6d783b82 Mon Sep 17 00:00:00 2001 From: Brian Broll Date: Fri, 17 Nov 2023 10:45:06 -0600 Subject: [PATCH] Remove duplicate cloud error dialog (only use onerror handler) --- src/gui.js | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/src/gui.js b/src/gui.js index a3225a9986..c287426eb7 100644 --- a/src/gui.js +++ b/src/gui.js @@ -7199,19 +7199,16 @@ SaveOpenDialogMorph.prototype.trySaveItem = async function(newItem) { if (!overwrite) return; } - try { - const sourceName = localize(this.source.name.toLowerCase()); - const savingMsg = localize(`Saving ${this.itemName.toLowerCase()}\nto the `) + - sourceName + '...'; - const savedMsg = localize('Saved to the ') + sourceName + '!'; - - this.ide.showMessage(savingMsg); - await this.saveItem(newItem, {overwrite}); - this.ide.showMessage(savedMsg, 2); - this.destroy(); - } catch (err) { - this.ide.cloudError().call(null, err.label, err.message); - } + const sourceName = localize(this.source.name.toLowerCase()); + const savingMsg = localize(`Saving ${this.itemName.toLowerCase()}\nto the `) + + sourceName + '...'; + const savedMsg = localize('Saved to the ') + sourceName + '!'; + + this.ide.showMessage(savingMsg); + await this.saveItem(newItem, {overwrite}); + this.ide.showMessage(savedMsg, 2); + this.destroy(); + return newItem; };