|
|
|
@ -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();
|
|
|
|
|