sinowealth: don't mark inactive profile as active

This commit is contained in:
Yaroslav Chvanov
2022-01-29 15:13:12 +03:00
committed by Peter Hutterer
parent 48d654827e
commit 81ca281f2c

View File

@@ -604,7 +604,7 @@ sinowealth_update_profile_from_config(struct ratbag_profile *profile)
ratbag_led_unref(led);
}
profile->is_active = true;
profile->is_active = profile->index == drv_data->current_profile_index;
return 0;
}