mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
sinowealth: change device files to match other drivers
..specifically the "ButtonCount" and "ProfileCount" keys.
This commit is contained in:
@@ -248,7 +248,7 @@ init_data_sinowealth(struct ratbag *ratbag,
|
||||
|
||||
struct sinowealth_device_data *device = zalloc(sizeof(struct sinowealth_device_data));
|
||||
|
||||
rc = g_key_file_get_integer(keyfile, device_group, "ButtonCount", &error);
|
||||
rc = g_key_file_get_integer(keyfile, device_group, "Buttons", &error);
|
||||
if (rc != 0 && !error) {
|
||||
device->button_count = rc;
|
||||
} else {
|
||||
@@ -278,7 +278,7 @@ init_data_sinowealth(struct ratbag *ratbag,
|
||||
}
|
||||
g_clear_error(&error);
|
||||
|
||||
rc = g_key_file_get_integer(keyfile, device_group, "ProfileCount", &error);
|
||||
rc = g_key_file_get_integer(keyfile, device_group, "Profiles", &error);
|
||||
if (rc != 0 && !error) {
|
||||
device->profile_count = rc;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user