Update the export project function to use saveXMLAs

dev
Michael Ball 2015-11-12 05:05:13 -08:00
rodzic 212aa7bdda
commit 995d3da58d
1 zmienionych plików z 4 dodań i 4 usunięć

8
gui.js
Wyświetl plik

@ -3027,8 +3027,8 @@ IDE_Morph.prototype.exportProject = function (name, plain) {
try {
menu = this.showMessage('Exporting');
str = this.serializer.serialize(this.stage)
this.setURL('#open:' + encodeURIComponent(str));
this.saveFileAs(str, name);
this.setURL('#open:' + dataPrefix + encodeURIComponent(str));
this.saveXMLAs(str, name, true);
menu.destroy();
this.showMessage('Exported!', 1);
} catch (err) {
@ -3037,8 +3037,8 @@ IDE_Morph.prototype.exportProject = function (name, plain) {
} else {
menu = this.showMessage('Exporting');
str = this.serializer.serialize(this.stage)
this.setURL('#open:' + encodeURIComponent(str));
this.saveFileAs(str, name);
this.setURL('#open:' + dataPrefix + encodeURIComponent(str));
this.saveXMLAs(str, name);
menu.destroy();
this.showMessage('Exported!', 1);
}