mirror of https://gitlab.com/basile.b/dexed.git
fix, process input wdget remained disabled if process killed manually
This commit is contained in:
parent
08207c365c
commit
5dd4001470
|
@ -77,14 +77,12 @@ end;
|
||||||
|
|
||||||
procedure TCEProcInputWidget.addProcess(aProcess: TProcess);
|
procedure TCEProcInputWidget.addProcess(aProcess: TProcess);
|
||||||
begin
|
begin
|
||||||
|
Panel1.Enabled:=false;
|
||||||
|
|
||||||
// TODO-cfeature: process list, imply that each TCESynMemo must have its own runnable TProcess
|
// TODO-cfeature: process list, imply that each TCESynMemo must have its own runnable TProcess
|
||||||
// currently they share the CEMainForm.fRunProc variable.
|
// currently they share the CEMainForm.fRunProc variable.
|
||||||
if fProc <> nil then
|
if fProc <> nil then
|
||||||
begin
|
|
||||||
fProc.Terminate(1);
|
fProc.Terminate(1);
|
||||||
Panel1.Enabled:=false;
|
|
||||||
end
|
|
||||||
else Panel1.Enabled:=true;
|
|
||||||
|
|
||||||
txtExeName.Caption := 'no process';
|
txtExeName.Caption := 'no process';
|
||||||
fProc := nil;
|
fProc := nil;
|
||||||
|
@ -93,6 +91,7 @@ begin
|
||||||
if not (poUsePipes in aProcess.Options) then
|
if not (poUsePipes in aProcess.Options) then
|
||||||
exit;
|
exit;
|
||||||
fProc := aProcess;
|
fProc := aProcess;
|
||||||
|
if fProc <> nil then Panel1.Enabled:=true;
|
||||||
txtExeName.Caption := shortenPath(fProc.Executable);
|
txtExeName.Caption := shortenPath(fProc.Executable);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue