mirror of
https://github.com/ventoy/Ventoy.git
synced 2024-12-24 06:05:58 -05:00
Fix a bug when creating multi-mod configuration for img_list in VentoyPlugson.
This commit is contained in:
parent
23f4f18e27
commit
43e921878b
@ -1775,7 +1775,9 @@ int ventoy_data_cmp_image_list(data_image_list *data1, data_image_list *data2)
|
||||
int ventoy_data_save_image_list(data_image_list *data, const char *title, char *buf, int buflen)
|
||||
{
|
||||
int pos = 0;
|
||||
int prelen;
|
||||
path_node *node = NULL;
|
||||
char newtitle[64];
|
||||
|
||||
(void)title;
|
||||
|
||||
@ -1783,17 +1785,20 @@ int ventoy_data_save_image_list(data_image_list *data, const char *title, char *
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
prelen = (int)strlen("image_list");
|
||||
|
||||
VTOY_JSON_FMT_BEGIN(pos, buf, buflen);
|
||||
|
||||
if (data->type == 0)
|
||||
{
|
||||
VTOY_JSON_FMT_KEY_L(L1, "image_list");
|
||||
scnprintf(newtitle, sizeof(newtitle), "image_list%s", title + prelen);
|
||||
}
|
||||
else
|
||||
{
|
||||
VTOY_JSON_FMT_KEY_L(L1, "image_blacklist");
|
||||
scnprintf(newtitle, sizeof(newtitle), "image_blacklist%s", title + prelen);
|
||||
}
|
||||
VTOY_JSON_FMT_KEY_L(L1, newtitle);
|
||||
|
||||
VTOY_JSON_FMT_ARY_BEGIN_N();
|
||||
|
||||
|
Binary file not shown.
@ -1 +1 @@
|
||||
de_DEen_USfr_FRhr_HRid_IDja_JPpt_PTsr_CYsr_SRtr_TRzh_CN
|
||||
de_DEen_USfr_FRhr_HRid_IDja_JPpt_PTsr_RStr_TRzh_CN
|
@ -195,7 +195,7 @@
|
||||
$('input:text[id=id_tip_text_top]').val(data.top);
|
||||
$('input:text[id=id_tip_text_color]').val(data.color);
|
||||
|
||||
FillTipTable(data.tips);
|
||||
FillTipTable(data);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user