From 81ca281f2c6381d84f1f8d513afa19e6503e8944 Mon Sep 17 00:00:00 2001 From: Yaroslav Chvanov Date: Sat, 29 Jan 2022 15:13:12 +0300 Subject: [PATCH] sinowealth: don't mark inactive profile as active --- src/driver-sinowealth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver-sinowealth.c b/src/driver-sinowealth.c index 48f24b09..65ab1569 100644 --- a/src/driver-sinowealth.c +++ b/src/driver-sinowealth.c @@ -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; }