feat: 历史"重做"按钮 + 老 image_generator.py 改 .txt 后缀(保留参考)
# 1. 历史详情"重做"按钮(在 "
复制" 左侧) 行为:把历史项的 prompt + 参考图 + 宽高比 + 尺寸 + 模式回填到图片生成 tab, 切到 tab 0,**不回填生成图**(用户要新结果)。便于微调提示词后重新生成。 bridges/history.py: + Signal redoRequested(payload) + Slot redoToImageGen(timestamp):load_history_item_fast → 反查 mode → 过滤已删参考图 → emit payload qml_poc/qml/HistoryTab.qml: 详情面板 prompt header 加 SecondaryButton "
重做" enabled: 已选中历史项 qml_poc/qml/ImageGenTab.qml: Connections target: history 接 redoRequested → 回填字段 + 切 tab 0 状态文字: "● 已载入历史,可微调提示词后重新生成" # 2. image_generator.py → image_generator.py.txt 老代码先不删,改 .txt 后缀: - Python 不再加载(new 主入口 main_qml.py 早已不依赖它, grep 全项目无 'from image_generator' 或 'import image_generator') - PyInstaller 不会扫 .txt - git mv 保留全部历史,需要扒老逻辑时直接打开看 - task #19 真正"删掉"动作留作后续,避免一次性删后才发现还有 bug 要扒 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Showing
4 changed files
with
78 additions
and
1 deletions
File moved
-
Please register or sign in to post a comment