mirror of https://gitlab.com/basile.b/dexed.git
proj inspct, btn enabled only if proj assigned
This commit is contained in:
parent
f014576835
commit
eaee7ee30a
|
@ -378,6 +378,7 @@ var
|
||||||
src, fold, conf: string;
|
src, fold, conf: string;
|
||||||
lst: TStringList;
|
lst: TStringList;
|
||||||
itm: TTreeNode;
|
itm: TTreeNode;
|
||||||
|
hasProj: boolean;
|
||||||
i: NativeInt;
|
i: NativeInt;
|
||||||
begin
|
begin
|
||||||
fConfNode.DeleteChildren;
|
fConfNode.DeleteChildren;
|
||||||
|
@ -385,7 +386,14 @@ begin
|
||||||
fImpsNode.DeleteChildren;
|
fImpsNode.DeleteChildren;
|
||||||
fInclNode.DeleteChildren;
|
fInclNode.DeleteChildren;
|
||||||
fXtraNode.DeleteChildren;
|
fXtraNode.DeleteChildren;
|
||||||
if fProject = nil then exit;
|
//
|
||||||
|
hasProj := fProject <> nil;
|
||||||
|
btnAddFile.Enabled := hasProj;
|
||||||
|
btnRemFile.Enabled := hasProj;
|
||||||
|
btnAddFold.Enabled := hasProj;
|
||||||
|
btnRemFold.Enabled := hasProj;
|
||||||
|
if not hasProj then exit;
|
||||||
|
//
|
||||||
Tree.BeginUpdate;
|
Tree.BeginUpdate;
|
||||||
// display main sources
|
// display main sources
|
||||||
for src in fProject.Sources do
|
for src in fProject.Sources do
|
||||||
|
|
Loading…
Reference in New Issue