fix(studio): Allow adding layers after a layer move (#2748)

Properly return the available layers in the move layer response.
This commit is contained in:
Pete Johanson 2025-01-03 17:19:19 -07:00 committed by GitHub
parent e6343f44ce
commit 36508c27fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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)});