aboutsummaryrefslogtreecommitdiffstats
path: root/javascript/notification.js
diff options
context:
space:
mode:
authorKalle <kalekkiorg@gmail.com>2022-10-12 21:12:20 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-13 14:36:49 +0000
commitcf1e8fcb303a21ab626fc1e8b3bc95bb780e8758 (patch)
tree63fe11269f4ba2bac8efb9c4a9a7b72485196dbf /javascript/notification.js
parentbb7baf6b9cb6b4b9fa09b6f07ef997db32fe6e58 (diff)
downloadstable-diffusion-webui-gfx803-cf1e8fcb303a21ab626fc1e8b3bc95bb780e8758.tar.gz
stable-diffusion-webui-gfx803-cf1e8fcb303a21ab626fc1e8b3bc95bb780e8758.tar.bz2
stable-diffusion-webui-gfx803-cf1e8fcb303a21ab626fc1e8b3bc95bb780e8758.zip
Correct img gen count in notification
Display correct count of images generated in browser notification regardless of "Show grid in results for web" setting.
Diffstat (limited to 'javascript/notification.js')
-rw-r--r--javascript/notification.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/javascript/notification.js b/javascript/notification.js
index bdf614ad..f96de313 100644
--- a/javascript/notification.js
+++ b/javascript/notification.js
@@ -36,7 +36,7 @@ onUiUpdate(function(){
const notification = new Notification(
'Stable Diffusion',
{
- body: `Generated ${imgs.size > 1 ? imgs.size - 1 : 1} image${imgs.size > 1 ? 's' : ''}`,
+ body: `Generated ${imgs.size > 1 ? imgs.size - opts.return_grid : 1} image${imgs.size > 1 ? 's' : ''}`,
icon: headImg,
image: headImg,
}