Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1837,8 +1837,11 @@ void Application::idle() { · 1836 unmodified lines | ||
| 1837 | 1837 | // perpetuity and not expect events to get backed up. |
| 1838 | 1838 | |
| 1839 | 1839 | static const int IDLE_TIMER_DELAY_MS = 0; |
| 1840 | + int desiredInterval = _glWidget->isThrottleRendering() ? THROTTLED_IDLE_TIMER_DELAY : IDLE_TIMER_DELAY_MS; | |
| 1840 | 1841 | |
| 1841 | − idleTimer->start(_glWidget->isThrottleRendering() ? THROTTLED_IDLE_TIMER_DELAY : IDLE_TIMER_DELAY_MS); | |
| 1842 | + if (idleTimer->interval() != desiredInterval) { | |
| 1843 | + idleTimer->start(desiredInterval); | |
| 1844 | + } | |
| 1842 | 1845 | } |
| 1843 | 1846 | |
| 1844 | 1847 | // check for any requested background downloads. |