mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 18:17:23 +00:00
LibCore: Unmark timer interval being dirty after applying new interval
Previously it was never unmarked, so the timer would constantly stop and start, which made the timer jittery especially at small intervals.
This commit is contained in:
parent
3a072f66e3
commit
31faf31f6a
Notes:
github-actions[bot]
2025-07-26 14:10:45 +00:00
Author: https://github.com/Lubrsi
Commit: 31faf31f6a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5606
Reviewed-by: https://github.com/Psychpsyo
Reviewed-by: https://github.com/kalenikaliaksandr
1 changed files with 1 additions and 0 deletions
|
@ -90,6 +90,7 @@ void Timer::timer_event(TimerEvent&)
|
|||
if (m_interval_dirty) {
|
||||
stop();
|
||||
start(m_interval_ms);
|
||||
m_interval_dirty = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue