From ce40560a8402d0036229da6438e9dc9844831e2f Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Fri, 19 Mar 2021 14:06:18 +0100 Subject: [PATCH] main: Don't optimise changing the ActiveProfile property As a follow-up to 4fc05c84d6ad656e7d5cc902beefa5ee707fc9a6, we might not be certain that the backend is actually in the state the user wants, so pass the request to the backend. --- src/power-profiles-daemon.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/power-profiles-daemon.c b/src/power-profiles-daemon.c index c07d8a5..ac5a417 100644 --- a/src/power-profiles-daemon.c +++ b/src/power-profiles-daemon.c @@ -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,