Education package: Fix compilation after cbc97e5a03.

This commit is contained in:
Juha 2021-11-24 12:49:30 +02:00
parent 63945a80e6
commit b1e6affa83

View File

@ -418,13 +418,13 @@ begin
inherited Create; inherited Create;
Name:='ComponentPalette'; Name:='ComponentPalette';
fVisible:=TStringToStringTree.Create(false); fVisible:=TStringToStringTree.Create(false);
IDEComponentPalette.AddHandlerUpdateVisible(@VoteForVisible); IDEComponentPalette.AddHandlerVoteVisibility(@VoteForVisible);
end; end;
destructor TEduComponentPaletteOptions.Destroy; destructor TEduComponentPaletteOptions.Destroy;
begin begin
if IDEComponentPalette<>nil then if IDEComponentPalette<>nil then
IDEComponentPalette.RemoveHandlerUpdateVisible(@VoteForVisible); IDEComponentPalette.RemoveHandlerVoteVisibility(@VoteForVisible);
FreeAndNil(fVisible); FreeAndNil(fVisible);
inherited Destroy; inherited Destroy;
end; end;