Skip to content

plugins/nightlight: Remove premature optimization in updateTransitionTimings()

Vlad Zahorodnii requested to merge work/cherry-pick-07f266e7 into Plasma/6.1

There are a couple of reasons why it's worth removing it:

  • it's error prone. If one forgets to pass correct "force" flag, night light will break
  • it contributes some complexity
  • updateTransitionTimings() is not called in any hot path and the code that calculates the position of the Sun is not resource intensive

(cherry picked from commit 07f266e7)

Merge request reports

Loading