You've already forked lazarus-ccr
tvplanit: Fix countdown timer not stopping at end.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5043 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -735,6 +735,12 @@ begin
|
||||
cmTimer: { Count-up timer }
|
||||
SetTime(elapsed);
|
||||
cmCountDownTimer: { Count-down timer }
|
||||
if abs(FCountdownStartTime - elapsed) < 0.1 / SecondsInDay then
|
||||
begin
|
||||
SetTime(0);
|
||||
Active := false;
|
||||
DoOnCountdownDone;
|
||||
end else
|
||||
SetTime(FCountdownStartTime - elapsed);
|
||||
end;
|
||||
end;
|
||||
|
Reference in New Issue
Block a user