mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Enhancement: Disable "Indexes" and "Foreign keys" node to indicate they have 0 child nodes
This commit is contained in:
@@ -233,6 +233,10 @@ begin
|
||||
if GetRegValue(Option, True) then
|
||||
Node.CheckState := csCheckedNormal;
|
||||
(Sender as TVirtualStringTree).OnChecked(Sender, Node);
|
||||
// Disable node to indicate 0 children
|
||||
if ((Node.Index = nKeys) and (FKeys.Count = 0))
|
||||
or ((Node.Index = nForeignKeys) and (FForeignKeys.Count = 0)) then
|
||||
Node.States := Node.States + [vsDisabled];
|
||||
end;
|
||||
|
||||
1: if Node.Parent.CheckState in [csCheckedNormal, csCheckedPressed, csMixedNormal, csMixedPressed] then
|
||||
|
||||
Reference in New Issue
Block a user