mirror of https://gitlab.com/basile.b/dexed.git
improved projects actions state
This commit is contained in:
parent
47bfe2fccc
commit
ebecea6eb2
|
@ -814,11 +814,14 @@ begin
|
||||||
actProjCompile.Enabled := hasProj;
|
actProjCompile.Enabled := hasProj;
|
||||||
actProjCompileAndRun.Enabled := hasProj;
|
actProjCompileAndRun.Enabled := hasProj;
|
||||||
actProjCompAndRunWithArgs.Enabled := hasProj;
|
actProjCompAndRunWithArgs.Enabled := hasProj;
|
||||||
actProjRun.Enabled := hasProj;
|
|
||||||
actProjRunWithArgs.Enabled := hasProj;
|
|
||||||
actProjSource.Enabled := hasProj;
|
|
||||||
actProjOptView.Enabled := hasProj;
|
actProjOptView.Enabled := hasProj;
|
||||||
actProjOpenContFold.Enabled := hasProj;
|
actProjOpenContFold.Enabled := hasProj;
|
||||||
|
if hasProj then
|
||||||
|
begin
|
||||||
|
actProjSource.Enabled := fileExists(fProject.Filename);
|
||||||
|
actProjRun.Enabled := fProject.canBeRun;
|
||||||
|
actProjRunWithArgs.Enabled := fProject.canBeRun;
|
||||||
|
end;
|
||||||
|
|
||||||
actFileAddToProj.Enabled := hasEd and hasProj;
|
actFileAddToProj.Enabled := hasEd and hasProj;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue