Fixed no commit when opening saved doc
This commit is contained in:
parent
c188da9df9
commit
8131f1262d
|
@ -808,6 +808,7 @@ function Ea(a) {
|
||||||
$("#drive-save-state").text("Loaded");
|
$("#drive-save-state").text("Loaded");
|
||||||
this.state.clear();
|
this.state.clear();
|
||||||
ua(this.state, a, E(this.view, new p(this.view.canvas.width / 2, this.view.canvas.height / 2)));
|
ua(this.state, a, E(this.view, new p(this.view.canvas.width / 2, this.view.canvas.height / 2)));
|
||||||
|
N(this.state);
|
||||||
this.D = R(this.state);
|
this.D = R(this.state);
|
||||||
}.bind(a));
|
}.bind(a));
|
||||||
}
|
}
|
||||||
|
|
|
@ -192,6 +192,7 @@ ascii.DriveController.prototype.reloadFileContent = function() {
|
||||||
this.state.fromText(content, this.view.screenToCell(new ascii.Vector(
|
this.state.fromText(content, this.view.screenToCell(new ascii.Vector(
|
||||||
this.view.canvas.width / 2,
|
this.view.canvas.width / 2,
|
||||||
this.view.canvas.height / 2)));
|
this.view.canvas.height / 2)));
|
||||||
|
this.state.commitDraw();
|
||||||
this.cachedText = this.state.outputText();
|
this.cachedText = this.state.outputText();
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue