kopia lustrzana https://github.com/backface/turtlestitch
Update the export project function to use saveXMLAs
rodzic
212aa7bdda
commit
995d3da58d
8
gui.js
8
gui.js
|
@ -3027,8 +3027,8 @@ IDE_Morph.prototype.exportProject = function (name, plain) {
|
||||||
try {
|
try {
|
||||||
menu = this.showMessage('Exporting');
|
menu = this.showMessage('Exporting');
|
||||||
str = this.serializer.serialize(this.stage)
|
str = this.serializer.serialize(this.stage)
|
||||||
this.setURL('#open:' + encodeURIComponent(str));
|
this.setURL('#open:' + dataPrefix + encodeURIComponent(str));
|
||||||
this.saveFileAs(str, name);
|
this.saveXMLAs(str, name, true);
|
||||||
menu.destroy();
|
menu.destroy();
|
||||||
this.showMessage('Exported!', 1);
|
this.showMessage('Exported!', 1);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
@ -3037,8 +3037,8 @@ IDE_Morph.prototype.exportProject = function (name, plain) {
|
||||||
} else {
|
} else {
|
||||||
menu = this.showMessage('Exporting');
|
menu = this.showMessage('Exporting');
|
||||||
str = this.serializer.serialize(this.stage)
|
str = this.serializer.serialize(this.stage)
|
||||||
this.setURL('#open:' + encodeURIComponent(str));
|
this.setURL('#open:' + dataPrefix + encodeURIComponent(str));
|
||||||
this.saveFileAs(str, name);
|
this.saveXMLAs(str, name);
|
||||||
menu.destroy();
|
menu.destroy();
|
||||||
this.showMessage('Exported!', 1);
|
this.showMessage('Exported!', 1);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue