kopia lustrzana https://github.com/backface/turtlestitch
Fixed #72
Canceling a "Save as..." operation will no longer replace the selected project upon the next save.pull/3/merge
rodzic
020f95992d
commit
e642b1a109
6
gui.js
6
gui.js
|
@ -3964,7 +3964,6 @@ ProjectDialogMorph.prototype.saveProject = function () {
|
||||||
|
|
||||||
this.ide.projectNotes = notes || this.ide.projectNotes;
|
this.ide.projectNotes = notes || this.ide.projectNotes;
|
||||||
if (name) {
|
if (name) {
|
||||||
this.ide.setProjectName(name);
|
|
||||||
if (this.source === 'cloud') {
|
if (this.source === 'cloud') {
|
||||||
if (detect(
|
if (detect(
|
||||||
this.projectList,
|
this.projectList,
|
||||||
|
@ -3976,11 +3975,12 @@ ProjectDialogMorph.prototype.saveProject = function () {
|
||||||
) + '\n"' + name + '"?',
|
) + '\n"' + name + '"?',
|
||||||
'Replace Project',
|
'Replace Project',
|
||||||
function () {
|
function () {
|
||||||
|
myself.ide.setProjectName(name);
|
||||||
myself.saveCloudProject();
|
myself.saveCloudProject();
|
||||||
}
|
}
|
||||||
|
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
this.ide.setProjectName(name);
|
||||||
myself.saveCloudProject();
|
myself.saveCloudProject();
|
||||||
}
|
}
|
||||||
} else { // 'local'
|
} else { // 'local'
|
||||||
|
@ -3994,12 +3994,14 @@ ProjectDialogMorph.prototype.saveProject = function () {
|
||||||
) + '\n"' + name + '"?',
|
) + '\n"' + name + '"?',
|
||||||
'Replace Project',
|
'Replace Project',
|
||||||
function () {
|
function () {
|
||||||
|
myself.ide.setProjectName(name);
|
||||||
myself.ide.source = 'local';
|
myself.ide.source = 'local';
|
||||||
myself.ide.saveProject(name);
|
myself.ide.saveProject(name);
|
||||||
myself.destroy();
|
myself.destroy();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
this.ide.setProjectName(name);
|
||||||
myself.ide.source = 'local';
|
myself.ide.source = 'local';
|
||||||
this.ide.saveProject(name);
|
this.ide.saveProject(name);
|
||||||
this.destroy();
|
this.destroy();
|
||||||
|
|
Ładowanie…
Reference in New Issue