diff options
author | Bwin4L <Bwin4L@users.noreply.github.com> | 2022-12-10 21:58:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-10 21:58:06 +0000 |
commit | 303df25cc287365b43ede22e0c082ae06aa452b2 (patch) | |
tree | 2becfe3c120b2d1b16f85fc47920bae801afea24 | |
parent | 685f9631b56ff8bd43bce24ff5ce0f9a0e9af490 (diff) | |
download | stable-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
-rw-r--r-- | javascript/notification.js | 2 |
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; |