使PU和撤销重做可以直接保存

pull/651/head
ChenX 5 years ago
parent 43629c50de
commit ffbf4f79c4

@ -97,11 +97,15 @@ export class ApplicationService
{
if (HostApplicationServices.ShowHistoryLog)
this.Editor.Prompt("撤销:" + cmdName);
this.Saved = false;
});
end(this.Database.hm, this.Database.hm.RedoEvent, (cmdName: string) =>
{
if (HostApplicationServices.ShowHistoryLog)
this.Editor.Prompt("重做:" + cmdName);
this.Saved = false;
});
end(this.Database, this.Database.FileRead, () =>
{
@ -123,7 +127,7 @@ export class ApplicationService
new BoardLinesReactor(this);
this.CommandReactor.OnCommandEnd((cmdName, changeObjects, createObjects) =>
{
if (changeObjects.length > 0 || createObjects.length > 0)
if (changeObjects.length > 0 || createObjects.length > 0 || cmdName === "PU")
this.Saved = false;
});
this._autoCuttingReactor = new AutoCuttingReactor();

Loading…
Cancel
Save