mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 13:39:24 +02:00
Cocoa: CocoaDatePicker: optimize code
This commit is contained in:
parent
3d8dd85474
commit
484e6b3efd
@ -59,11 +59,10 @@ begin
|
|||||||
// After mouse event, has our date changed
|
// After mouse event, has our date changed
|
||||||
newDate:= NSDateToDateTime(Self.dateValue);
|
newDate:= NSDateToDateTime(Self.dateValue);
|
||||||
dateClicked:= (oldDate <> newDate);
|
dateClicked:= (oldDate <> newDate);
|
||||||
if dateClicked and Assigned(callback) then
|
if dateClicked then
|
||||||
callback.SendOnChange;
|
callback.SendOnChange;
|
||||||
|
|
||||||
// This also calls OnClick....
|
// This also calls OnClick....
|
||||||
if Assigned(Callback) then
|
|
||||||
callback.MouseUpDownEvent(event, true);
|
callback.MouseUpDownEvent(event, true);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user