mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-08 10:08:01 +02:00
main: Don't optimise changing the ActiveProfile property
As a follow-up to 4fc05c84d6, we might not
be certain that the backend is actually in the state the user wants, so
pass the request to the backend.
This commit is contained in:
parent
1883a773a1
commit
ce40560a84
1 changed files with 0 additions and 3 deletions
|
|
@ -242,9 +242,6 @@ set_active_profile (PpdApp *data,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
if (target_profile == data->active_profile)
|
||||
return TRUE;
|
||||
|
||||
if (target_profile == PPD_PROFILE_PERFORMANCE &&
|
||||
ppd_driver_is_performance_inhibited (GET_DRIVER (PPD_PROFILE_PERFORMANCE))) {
|
||||
g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_FAILED,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue