https://bugs.kde.org/show_bug.cgi?id=487901
Vlad Zahorodnii <vlad.zahorod...@kde.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas |ma/kwin/-/commit/83502e29a9 |ma/kwin/-/commit/35b3fc0bb1 |4c5972787357f3c5995697b5715 |b59423fedb7a4a45603418c20a8 |304 |881 --- Comment #8 from Vlad Zahorodnii <vlad.zahorod...@kde.org> --- Git commit 35b3fc0bb1b59423fedb7a4a45603418c20a8881 by Vlad Zahorodnii. Committed on 07/06/2024 at 15:27. Pushed by vladz into branch 'Plasma/6.1'. plugins/nightlight: Fix current time changing after updating transitions When the slow update timer fires, it's going to pass m_next.first as the current time in order to calculate the next transition timings. After the timings have been calculated, the slow update timer will be started with an interval of "todayNow.msecsTo(m_next.first)". Since todayNow is a reference to m_next.first, the time diff will be 0, which will throw off the night light manager. To fix that, make a copy of m_next.first and then pass the copy as the current date time to resetSlowUpdateTimers(). (cherry picked from commit 83502e29a94c5972787357f3c5995697b5715304) Co-authored-by: Vlad Zahorodnii <vlad.zahorod...@kde.org> M +2 -1 src/plugins/nightlight/nightlightmanager.cpp https://invent.kde.org/plasma/kwin/-/commit/35b3fc0bb1b59423fedb7a4a45603418c20a8881 -- You are receiving this mail because: You are watching all bug changes.