mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
Fix ratbag_button_get_type
we should return the actual type. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
@@ -606,7 +606,7 @@ ratbag_profile_get_button_by_index(struct ratbag_profile *profile,
|
||||
LIBRATBAG_EXPORT enum ratbag_button_type
|
||||
ratbag_button_get_type(struct ratbag_button *button)
|
||||
{
|
||||
return RATBAG_BUTTON_TYPE_UNKNOWN;
|
||||
return button->type;
|
||||
}
|
||||
|
||||
LIBRATBAG_EXPORT struct ratbag_button *
|
||||
|
||||
Reference in New Issue
Block a user