| 57 | } |
| 58 | |
| 59 | void UpdateCheck::timerCallback() |
| 60 | { |
| 61 | auto current_time = Time::getCurrentTime(); |
| 62 | auto mouse_over = isMouseOver(true); |
| 63 | |
| 64 | if (mouse_over) { |
| 65 | mHideTime = std::max(current_time + RelativeTime::seconds(mTimeIncrementOnMouseOverSeconds), mHideTime); |
| 66 | } |
| 67 | |
| 68 | if (current_time >= mHideTime) { |
| 69 | _hideNotification(); |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | void UpdateCheck::checkForUpdate(bool inShowNotificationOnLatestVersion) |
| 74 | { |