Bläddra i källkod

Correct img gen count in notification

Display correct count of images generated in browser notification regardless of "Show grid in results for web" setting.
Kalle 2 år sedan
förälder
incheckning
cf1e8fcb30
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      javascript/notification.js

+ 1 - 1
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,
         }