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);
|
||||
begin
|
||||
inspector.TIObject := getGridTarget;
|
||||
selconf.Enabled := (inspector.TIObject <> fProj) and (fProj <> nil);
|
||||
end;
|
||||
|
||||
procedure TCEProjectConfigurationWidget.setSyncroMode(aValue: boolean);
|
||||
|
|
@ -403,6 +404,7 @@ var
|
|||
begin
|
||||
selConf.ItemIndex:= -1;
|
||||
selConf.Clear;
|
||||
selconf.Enabled := (inspector.TIObject <> fProj) and (fProj <> nil);
|
||||
if fProj = nil then exit;
|
||||
//
|
||||
for i:= 0 to fProj.OptionsCollection.Count-1 do
|
||||
|
|
|
|||
Loading…
Reference in New Issue