better single-image removal handling

This commit is contained in:
tim h 2023-01-20 16:19:01 -06:00
parent aa46501b2e
commit b52e3dc2ba
2 changed files with 2 additions and 2 deletions

View file

@ -381,7 +381,7 @@
src="js/ui/tool/generic.js?v=3e678e0"
type="text/javascript"></script>
<script src="js/ui/tool/dream.js?v=eb98dc9" type="text/javascript"></script>
<script src="js/ui/tool/dream.js?v=e5adb06" type="text/javascript"></script>
<script
src="js/ui/tool/maskbrush.js?v=1e8a893"
type="text/javascript"></script>

View file

@ -521,7 +521,7 @@ const _generate = async (endpoint, request, bb, options = {}) => {
if (!images[at]) return;
images.splice(at, 1);
seeds.splice(at, 1);
if (at >= images.length) at = 0;
if (at > images.length - 1) prevImg();
imageindextxt.textContent = `${at}/${images.length - 1}`;
var seed = seeds[at];
seedbtn.title = "Use seed " + seed;