From e17f47cefe03250c7dca38cd6692232051f7943e Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sun, 30 Nov 2025 17:50:09 +0100 Subject: [PATCH] Ensure image prompt is cleared if it matches the placeholder --- concept-maker_gui.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/concept-maker_gui.py b/concept-maker_gui.py index b488d26..8595c36 100644 --- a/concept-maker_gui.py +++ b/concept-maker_gui.py @@ -2779,6 +2779,9 @@ class App(TkinterDnD.Tk): # type: ignore "label": str(v.get("label") or ""), "text": str(v.get("text") or ""), }) + img_prompt = self._get_image_prompt_text() + if img_prompt.strip() == IMAGE_PROMPT_PLACEHOLDER: + img_prompt = "" return { "title": (self.title_var.get() or "").strip(), "description": (self.desc_var.get() or "").strip(), @@ -2788,9 +2791,10 @@ class App(TkinterDnD.Tk): # type: ignore "websites": websites_list, "rephrase_variants": variants, "rephrase_selected_key": self.rephrase_selected_key, + "image_prompt": img_prompt, } except Exception: - return {"title":"","description":"","notes":"","concept":"","files":[],"websites":[],"rephrase_variants":[],"rephrase_selected_key":None} + return {"title":"","description":"","notes":"","concept":"","files":[],"websites":[],"rephrase_variants":[],"rephrase_selected_key":None,"image_prompt":""} def _is_effectively_dirty(self) -> bool: try: