mirror of https://gitlab.com/basile.b/dexed.git
clear cdb output list on restart
This commit is contained in:
parent
5de7c44696
commit
1286d61412
|
@ -26,7 +26,6 @@ type
|
|||
procedure btnStartClick(Sender: TObject);
|
||||
procedure btnStepClick(Sender: TObject);
|
||||
procedure btnStopClick(Sender: TObject);
|
||||
procedure Button2Click(Sender: TObject);
|
||||
procedure txtCdbCmdKeyPress(Sender: TObject; var Key: char);
|
||||
private
|
||||
fCdbProc: TAsyncProcess;
|
||||
|
@ -96,6 +95,7 @@ procedure TCECdbWidget.btnStartClick(Sender: TObject);
|
|||
var
|
||||
outname: string;
|
||||
begin
|
||||
lstCdbOut.Clear;
|
||||
if fProject = nil then exit;
|
||||
outname := fProject.outputFilename;
|
||||
if not fileExists(outname) then exit;
|
||||
|
@ -139,15 +139,14 @@ begin
|
|||
end;
|
||||
|
||||
procedure TCECdbWidget.btnStopClick(Sender: TObject);
|
||||
const
|
||||
cmd = 'q'#13#10;
|
||||
begin
|
||||
if fCdbProc <> nil then
|
||||
fCdbProc.Input.Write(cmd[1], length(cmd));
|
||||
cdbFree;
|
||||
end;
|
||||
|
||||
procedure TCECdbWidget.Button2Click(Sender: TObject);
|
||||
begin
|
||||
|
||||
end;
|
||||
|
||||
procedure TCECdbWidget.txtCdbCmdKeyPress(Sender: TObject; var Key: char);
|
||||
var
|
||||
inp: string;
|
||||
|
|
Loading…
Reference in New Issue