https://bugs.kde.org/show_bug.cgi?id=394945

Nate Graham <n...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/powerdevil/commit/0f548c |ma/powerdevil/commit/35fb7f
                   |53dd177235eaf5ce8452c9b4483 |501e6e0057d6fef8a0f9da425d5
                   |9c12e21                     |8dfd27a

--- Comment #12 from Nate Graham <n...@kde.org> ---
Git commit 35fb7f501e6e0057d6fef8a0f9da425d58dfd27a by Nate Graham, on behalf
of Louis Moureaux.
Committed on 01/09/2022 at 18:57.
Pushed by ngraham into branch 'Plasma/5.24'.

Fix profile switching in the brightness actions

The current code assumes that the action is notified of every profile change,
which is only the case when the action is configured to run in all profiles.
The code that prevents brightness from being raised when switching to a more
conservative profile gets confused if the action didn't run in the "previous"
profile. Make it more robust by always querying the core for the previous
profile, which it luckily hasn't updated yet when the action gets executed.
FIXED-IN: 5.25


(cherry picked from commit 6220db1b8a5038ed5e1359b1afdf70c0625f0895)

M  +8    -7    daemon/actions/bundled/brightnesscontrol.cpp
M  +0    -1    daemon/actions/bundled/brightnesscontrol.h
M  +9    -7    daemon/actions/bundled/keyboardbrightnesscontrol.cpp
M  +0    -1    daemon/actions/bundled/keyboardbrightnesscontrol.h

https://invent.kde.org/plasma/powerdevil/commit/35fb7f501e6e0057d6fef8a0f9da425d58dfd27a

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to