Skip to content

Commit

Permalink
fix(studio): Allow adding layers after a layer move (zmkfirmware#2748)
Browse files Browse the repository at this point in the history
Properly return the available layers in the move layer response.
  • Loading branch information
petejohanson authored and caksoylar committed Jan 11, 2025
1 parent 68892e2 commit 9e3086b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/studio/keymap_subsystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ zmk_studio_Response move_layer(const zmk_studio_Request *req) {
if (ret >= 0) {
resp.which_result = zmk_keymap_SetActivePhysicalLayoutResponse_ok_tag;
resp.result.ok.layers.funcs.encode = encode_keymap_layers;
populate_keymap_extra_props(&resp.result.ok);

raise_zmk_studio_rpc_notification((struct zmk_studio_rpc_notification){
.notification = KEYMAP_NOTIFICATION(unsaved_changes_status_changed, true)});
Expand Down

0 comments on commit 9e3086b

Please sign in to comment.