diff options
author | Kalle <kalekkiorg@gmail.com> | 2022-10-12 21:12:20 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-13 14:36:49 +0000 |
commit | cf1e8fcb303a21ab626fc1e8b3bc95bb780e8758 (patch) | |
tree | 63fe11269f4ba2bac8efb9c4a9a7b72485196dbf /javascript | |
parent | bb7baf6b9cb6b4b9fa09b6f07ef997db32fe6e58 (diff) | |
download | stable-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')
-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 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, } |