Images history speed up

This commit is contained in:
yfszzx
2022-10-16 22:37:12 +08:00
parent f62905fdf9
commit a4de699e3c
2 changed files with 6 additions and 2 deletions

View File

@@ -108,6 +108,7 @@ function images_history_delete(del_num, tabname, image_index){
});
var img_num = buttons.length / 2;
del_num = Math.min(img_num - image_index, del_num)
console.log(del_num, img_num)
if (img_num <= del_num){
setTimeout(function(tabname){
gradioApp().getElementById(tabname + '_images_history_renew_page').click();