mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-06 19:38:45 +02:00
main: Fix transitioning to uninhibited profiles
They would always fail because the ppd_profile_driver_get_inhibited() doesn't return NULL, only empty strings.
This commit is contained in:
parent
979a47b7ef
commit
761fd8b700
1 changed files with 1 additions and 1 deletions
|
|
@ -201,7 +201,7 @@ set_selected_profile (PpdApp *data,
|
|||
profile_to_str (data->selected_profile), profile);
|
||||
data->selected_profile = target_profile;
|
||||
|
||||
if (ppd_profile_driver_get_inhibited (SELECTED_DRIVER)) {
|
||||
if (ppd_profile_driver_is_inhibited (SELECTED_DRIVER)) {
|
||||
send_dbus_event (data, PROP_SELECTED_PROFILE);
|
||||
g_debug ("Not transitioning to '%s' as inhibited", profile);
|
||||
return TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue