From 6889affcade60bcac8c92e1423277ef3428cc665 Mon Sep 17 00:00:00 2001 From: tim h Date: Fri, 20 Jan 2023 19:33:42 -0600 Subject: [PATCH 1/7] even better single image discard handling sorry for pushing to main but these are tiny and don't deserve PRs lol --- index.html | 2 +- js/ui/tool/dream.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 43a39aa..a60c812 100644 --- a/index.html +++ b/index.html @@ -381,7 +381,7 @@ src="js/ui/tool/generic.js?v=3e678e0" type="text/javascript"> - + diff --git a/js/ui/tool/dream.js b/js/ui/tool/dream.js index 6caf2e1..6f3b880 100644 --- a/js/ui/tool/dream.js +++ b/js/ui/tool/dream.js @@ -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; From e92d8fa9b6ba92c6e7af95fee9ef63d5ee9c482e Mon Sep 17 00:00:00 2001 From: Victor Seiji Hariki Date: Sat, 21 Jan 2023 10:18:55 -0300 Subject: [PATCH 2/7] fixes #179 Signed-off-by: Victor Seiji Hariki --- index.html | 2 +- js/ui/tool/maskbrush.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index a60c812..948abff 100644 --- a/index.html +++ b/index.html @@ -383,7 +383,7 @@ @@ -386,7 +386,7 @@ src="js/ui/tool/maskbrush.js?v=d88810f" type="text/javascript"> - + - + - +