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 ReFil committed Jan 4, 2025
1 parent aa78ce3 commit 8216ed4
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 @@ -404,6 +404,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 8216ed4

Please sign in to comment.