Merge pull request #5608 from Bwin4L/master

Make the generated image count in desktop notifications only count new gens in the currently active tab
This commit is contained in:
AUTOMATIC1111 2022-12-24 12:23:56 +03:00 committed by GitHub
commit ca16278188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;