MCPcopy Create free account
hub / github.com/DamRsn/NeuralNote / timerCallback

Method timerCallback

NeuralNote/Source/Components/UpdateCheck.cpp:59–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void 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
73void UpdateCheck::checkForUpdate(bool inShowNotificationOnLatestVersion)
74{

Callers

nothing calls this directly

Calls 1

maxFunction · 0.85

Tested by

no test coverage detected