Skip to content
Commit 0f548c53 authored by Louis Moureaux's avatar Louis Moureaux Committed by Nate Graham
Browse files

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.

BUG: 394945
FIXED-IN: 5.25


(cherry picked from commit 6220db1b)
parent 3b07690b
Pipeline #225929 passed with stage
in 2 minutes and 19 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment