mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
etekcity: fix the check for macro
The current code was checking if the previous action assigned to a button was a macro, not that the action we are assigning will be a macro. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
This commit is contained in:
@@ -631,7 +631,7 @@ etekcity_write_macro(struct ratbag_button *button,
|
||||
unsigned i, j, count = 0;
|
||||
int rc;
|
||||
|
||||
if (ratbag_button_get_action_type(button) != RATBAG_BUTTON_ACTION_TYPE_MACRO)
|
||||
if (action->type != RATBAG_BUTTON_ACTION_TYPE_MACRO)
|
||||
return 0;
|
||||
|
||||
device = button->profile->device;
|
||||
|
||||
Reference in New Issue
Block a user