Revert change to TimeView.cpp regarding
updating the tooltip. I committed it accidentally.
This commit is contained in:
@@ -332,10 +332,15 @@ TTimeView::Pulse()
|
|||||||
Update();
|
Update();
|
||||||
|
|
||||||
strlcpy(fLastTimeStr, fTimeStr, sizeof(fLastTimeStr));
|
strlcpy(fLastTimeStr, fTimeStr, sizeof(fLastTimeStr));
|
||||||
strlcpy(fLastDateStr, fDateStr, sizeof(fLastDateStr));
|
|
||||||
fNeedToUpdate = true;
|
fNeedToUpdate = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Update the tooltip if the date has changed
|
||||||
|
if (strcmp(fDateStr, fLastDateStr) != 0) {
|
||||||
|
strlcpy(fLastDateStr, fDateStr, sizeof(fLastDateStr));
|
||||||
|
SetToolTip(fDateStr);
|
||||||
|
}
|
||||||
|
|
||||||
if (fNeedToUpdate) {
|
if (fNeedToUpdate) {
|
||||||
fSeconds = ct->tm_sec;
|
fSeconds = ct->tm_sec;
|
||||||
fMinute = ct->tm_min;
|
fMinute = ct->tm_min;
|
||||||
|
|||||||
Reference in New Issue
Block a user