fix: preserve block_id across save/load and API save_preset/save_snapshot endpoints
CI / test (push) Has been cancelled

This commit is contained in:
2026-06-18 23:22:51 +00:00
parent 47bb535b08
commit c026bc72b7
3 changed files with 18 additions and 0 deletions
+2
View File
@@ -634,6 +634,7 @@ class WebServer:
params=b.get("params", {}),
nam_model_path=b.get("nam_model_path", ""),
ir_file_path=b.get("ir_file_path", ""),
block_id=b.get("block_id", ""),
))
preset = Preset(
name=data.get("name", f"Preset {bank}-{program}"),
@@ -752,6 +753,7 @@ class WebServer:
params=dict(bd.get("params", {})),
nam_model_path=bd.get("nam_model_path", ""),
ir_file_path=bd.get("ir_file_path", ""),
block_id=bd.get("block_id", ""),
)
)
preset.snapshots[slot] = SnapModel(