even better single image discard handling
sorry for pushing to main but these are tiny and don't deserve PRs lol
This commit is contained in:
parent
b52e3dc2ba
commit
6889affcad
2 changed files with 2 additions and 1 deletions
|
@ -381,7 +381,7 @@
|
|||
src="js/ui/tool/generic.js?v=3e678e0"
|
||||
type="text/javascript"></script>
|
||||
|
||||
<script src="js/ui/tool/dream.js?v=e5adb06" type="text/javascript"></script>
|
||||
<script src="js/ui/tool/dream.js?v=74c0c1f" type="text/javascript"></script>
|
||||
<script
|
||||
src="js/ui/tool/maskbrush.js?v=1e8a893"
|
||||
type="text/javascript"></script>
|
||||
|
|
|
@ -522,6 +522,7 @@ const _generate = async (endpoint, request, bb, options = {}) => {
|
|||
images.splice(at, 1);
|
||||
seeds.splice(at, 1);
|
||||
if (at > images.length - 1) prevImg();
|
||||
if (images.length - 1 === 0) discardImg();
|
||||
imageindextxt.textContent = `${at}/${images.length - 1}`;
|
||||
var seed = seeds[at];
|
||||
seedbtn.title = "Use seed " + seed;
|
||||
|
|
Loading…
Reference in a new issue