Skip to content

Commit

Permalink
Fixed design time behavior of SystemHandle.IsDefault. #20
Browse files Browse the repository at this point in the history
  • Loading branch information
bero committed Dec 7, 2024
1 parent 87f5f3c commit 5a4b442
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/BoldHandles.pas
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,10 @@ function TBoldAbstractSystemHandle.RefersToComponent(Component: TBoldSubscribabl

function TBoldAbstractSystemHandle.GetIsDefault: Boolean;
begin
result := G_DefaultBoldSystemHandle = Self;
if (csdesigning in ComponentState) then
result := fIsDefault
else
result := G_DefaultBoldSystemHandle = Self;
end;

procedure TBoldAbstractSystemHandle.SetIsDefault(Value: Boolean);
Expand Down

0 comments on commit 5a4b442

Please sign in to comment.