mirror of https://gitlab.com/basile.b/dexed.git
compile proj & run, handle compilation failures
This commit is contained in:
parent
8d75799454
commit
01724a5a9e
|
@ -1391,12 +1391,19 @@ end;
|
||||||
procedure TCEMainForm.projCompiled(aProject: ICECommonProject; success: boolean);
|
procedure TCEMainForm.projCompiled(aProject: ICECommonProject; success: boolean);
|
||||||
var
|
var
|
||||||
runArgs: string = '';
|
runArgs: string = '';
|
||||||
|
runprev: boolean = true;
|
||||||
begin
|
begin
|
||||||
if fRunProjAfterCompile and assigned(fProjectInterface) then
|
if fRunProjAfterCompile and assigned(fProjectInterface) then
|
||||||
begin
|
begin
|
||||||
if fRunProjAfterCompArg and not InputQuery('Execution arguments', '', runargs) then
|
if not success then
|
||||||
runargs := '';
|
runprev := dlgOkCancel('last build failed, continue and run ?') = mrOK;
|
||||||
fProjectInterface.run(runargs);
|
if runprev then
|
||||||
|
begin
|
||||||
|
if fRunProjAfterCompArg and
|
||||||
|
not InputQuery('Execution arguments', '', runargs) then
|
||||||
|
runargs := '';
|
||||||
|
fProjectInterface.run(runargs);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
fRunProjAfterCompile := false;
|
fRunProjAfterCompile := false;
|
||||||
fRunProjAfterCompArg := false;
|
fRunProjAfterCompArg := false;
|
||||||
|
|
Loading…
Reference in New Issue