From 61e3ffb2efb8a9417e4d7ed079f82da27cff4af7 Mon Sep 17 00:00:00 2001 From: somebody Date: Sun, 30 Jul 2023 16:12:20 -0500 Subject: [PATCH] UI: Fix the thingey --- static/koboldai.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/koboldai.js b/static/koboldai.js index d2ecac0a..fe154605 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -6089,7 +6089,7 @@ function closePopups(userAction=false) { for (const popupWindow of container.children) { // Do not let the user close windows they shouldn't be! Sneaky devils! - if (userAction && popupWindow.getAttribute("allow-close") === "false") { + if (userAction && popupWindow.getAttribute("allow-close") === "false" && !popupWindow.classList.contains("hidden")) { allHidden = false; continue; }