aboutsummaryrefslogtreecommitdiffstats
path: root/javascript
diff options
context:
space:
mode:
authorBwin4L <Bwin4L@users.noreply.github.com>2022-12-10 21:58:06 +0000
committerGitHub <noreply@github.com>2022-12-10 21:58:06 +0000
commit303df25cc287365b43ede22e0c082ae06aa452b2 (patch)
tree2becfe3c120b2d1b16f85fc47920bae801afea24 /javascript
parent685f9631b56ff8bd43bce24ff5ce0f9a0e9af490 (diff)
downloadstable-diffusion-webui-gfx803-303df25cc287365b43ede22e0c082ae06aa452b2.tar.gz
stable-diffusion-webui-gfx803-303df25cc287365b43ede22e0c082ae06aa452b2.tar.bz2
stable-diffusion-webui-gfx803-303df25cc287365b43ede22e0c082ae06aa452b2.zip
Make the generated image count only count new images in the currently active tab
Diffstat (limited to 'javascript')
-rw-r--r--javascript/notification.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/javascript/notification.js b/javascript/notification.js
index f96de313..040a3afa 100644
--- a/javascript/notification.js
+++ b/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;