mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-19 20:45:18 -05:00
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:
@@ -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)});
|
||||
|
||||
Reference in New Issue
Block a user