mirror of https://gitlab.com/basile.b/dexed.git
native proj editor, only enable conf selector when cat is specific to a conf
This commit is contained in:
parent
5452333f5a
commit
7b66664bc0
|
|
@ -173,6 +173,7 @@ procedure TCEProjectConfigurationWidget.TreeChange(Sender: TObject;
|
||||||
Node: TTreeNode);
|
Node: TTreeNode);
|
||||||
begin
|
begin
|
||||||
inspector.TIObject := getGridTarget;
|
inspector.TIObject := getGridTarget;
|
||||||
|
selconf.Enabled := (inspector.TIObject <> fProj) and (fProj <> nil);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCEProjectConfigurationWidget.setSyncroMode(aValue: boolean);
|
procedure TCEProjectConfigurationWidget.setSyncroMode(aValue: boolean);
|
||||||
|
|
@ -403,6 +404,7 @@ var
|
||||||
begin
|
begin
|
||||||
selConf.ItemIndex:= -1;
|
selConf.ItemIndex:= -1;
|
||||||
selConf.Clear;
|
selConf.Clear;
|
||||||
|
selconf.Enabled := (inspector.TIObject <> fProj) and (fProj <> nil);
|
||||||
if fProj = nil then exit;
|
if fProj = nil then exit;
|
||||||
//
|
//
|
||||||
for i:= 0 to fProj.OptionsCollection.Count-1 do
|
for i:= 0 to fProj.OptionsCollection.Count-1 do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue