From f9a37115074ae1e828b66f932d6e387c62140c3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Clet?= Date: Fri, 29 Nov 2024 19:04:38 +0100 Subject: [PATCH] fix names as symboles in filled_slots_dict --- code/tc.preset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/tc.preset.js b/code/tc.preset.js index d99d45c..abe32ff 100644 --- a/code/tc.preset.js +++ b/code/tc.preset.js @@ -1107,7 +1107,7 @@ function update_filled_slots_dict() { for (var i = 0; i < filled_slots.length; i++) { if (i > 0) filled_slots_dict.append('filled_slots', ''); var tmp_color_custom = slots[filled_slots[i]].color_custom; - filled_slots_dict.setparse('filled_slots[' + i + ']', 'slot:', filled_slots[i], 'name:', slots[filled_slots[i]].name, 'lock:', slots[filled_slots[i]].lock, 'color_index:', slots[filled_slots[i]].color_index, 'color_custom:', tmp_color_custom[0], tmp_color_custom[1], tmp_color_custom[2], tmp_color_custom[3]); + filled_slots_dict.setparse('filled_slots[' + i + ']', 'slot:', filled_slots[i], 'name:', '"' + slots[filled_slots[i]].name + '"', 'lock:', slots[filled_slots[i]].lock, 'color_index:', slots[filled_slots[i]].color_index, 'color_custom:', tmp_color_custom[0], tmp_color_custom[1], tmp_color_custom[2], tmp_color_custom[3]); } messnamed(pattrstorage_name + '_presets_dict', 'dictionary', filled_slots_dict.name); }