Include image prompt in session data if not placeholder

This commit is contained in:
Victor Giers
2025-11-30 17:49:52 +01:00
parent 2a0b4da479
commit 6ba208852e

View File

@@ -2917,6 +2917,9 @@ class App(TkinterDnD.Tk): # type: ignore
"file_hash": h,
"include": bool(self.include_map.get(u, True)),
})
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(),
@@ -2931,6 +2934,7 @@ class App(TkinterDnD.Tk): # type: ignore
"text": str(v.get("text") or ""),
} for v in (self.rephrase_variants or []) if isinstance(v, dict)],
"rephrase_selected_key": self.rephrase_selected_key,
"image_prompt": img_prompt,
}
def _save_session(self, *, confirm_overwrite: bool, autosave: bool) -> bool: