fix gallery delete and save

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-07-13 18:56:40 +02:00
parent d39bd45d04
commit fb71f63d77
7 changed files with 11 additions and 7 deletions
+2
View File
@@ -180,6 +180,8 @@ def save_files(js_data, files, html_info, index):
if index < len(files):
files = [files[index]]
start_index = index
elif len(files) == 1:
start_index = 0
else:
log.error(f'Save: index={index} first={p.index_of_first_image} files={len(files)} out of range')
files = []