mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 01:55:54 +02:00
LCL: TTimer: checking csDesgning is no longer useful, since SetDesigning works recursive
git-svn-id: trunk@30500 -
This commit is contained in:
parent
ab52351a55
commit
1e43eccbfd
@ -129,7 +129,7 @@ procedure TCustomTimer.UpdateTimer;
|
|||||||
begin
|
begin
|
||||||
KillTimer;
|
KillTimer;
|
||||||
if (FEnabled) and (FInterval > 0)
|
if (FEnabled) and (FInterval > 0)
|
||||||
and (([csDesigning,csLoading,csDestroying]*ComponentState=[]))
|
and (([csLoading,csDestroying]*ComponentState=[]))
|
||||||
and Assigned (FOnTimer) then begin
|
and Assigned (FOnTimer) then begin
|
||||||
//DebugLn(['TCustomTimer.UpdateTimer ',dbgsName(Self),' WidgetSet.CreateTimer']);
|
//DebugLn(['TCustomTimer.UpdateTimer ',dbgsName(Self),' WidgetSet.CreateTimer']);
|
||||||
FTimerHandle := WidgetSet.CreateTimer(FInterval, @Timer);
|
FTimerHandle := WidgetSet.CreateTimer(FInterval, @Timer);
|
||||||
|
Loading…
Reference in New Issue
Block a user