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:
Bastien Nocera 2021-03-19 14:06:18 +01:00
parent 1883a773a1
commit ce40560a84

View file

@ -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,