Sfoglia il codice sorgente

Make the generated image count only count new images in the currently active tab

Bwin4L 2 anni fa
parent
commit
303df25cc2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      javascript/notification.js

+ 1 - 1
javascript/notification.js

@@ -15,7 +15,7 @@ onUiUpdate(function(){
         }
         }
     }
     }
 
 
-    const galleryPreviews = gradioApp().querySelectorAll('img.h-full.w-full.overflow-hidden');
+    const galleryPreviews = gradioApp().querySelectorAll('div[id^="tab_"][style*="display: block"] img.h-full.w-full.overflow-hidden');
 
 
     if (galleryPreviews == null) return;
     if (galleryPreviews == null) return;