From fcebf043cccb475d46bab11ddecc34596a1794ce Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sun, 30 Nov 2025 17:49:17 +0100 Subject: [PATCH] auto-git: [change] concept-maker_gui.py --- concept-maker_gui.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/concept-maker_gui.py b/concept-maker_gui.py index 513a883..a038913 100644 --- a/concept-maker_gui.py +++ b/concept-maker_gui.py @@ -1799,11 +1799,23 @@ class App(TkinterDnD.Tk): # type: ignore self.image_prompt_text.configure(state=tk.NORMAL) self.image_prompt_text.delete("1.0", tk.END) if text: - self.image_prompt_text.insert("1.0", text.strip()) + text_clean = text.strip() + self.image_prompt_text.insert("1.0", text_clean) + self._image_prompt_value = text_clean + else: + self._image_prompt_value = "" self.image_prompt_text.configure(state=tk.DISABLED) except Exception: pass + def _get_image_prompt_text(self) -> str: + if getattr(self, "_image_prompt_value", None) is not None: + return self._image_prompt_value + try: + return self.image_prompt_text.get("1.0", tk.END).strip() + except Exception: + return "" + def _set_image_prompt_loading(self, flag: bool, *, interim_text: Optional[str] = None): try: if flag: