fix: 最近文件列表最小高度保障 + 欢迎文字读取配置版本号
- 列表动态高度从 75% 改为 85%,最小 300px - 欢迎信息版本号从硬编码 v1.1.0 改为读取 config.ini Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -145,7 +145,7 @@ def _create_recent_files_section(parent, theme, log_text):
|
||||
|
||||
def _resize_recent_top(e):
|
||||
try:
|
||||
h = int(e.height * 0.75)
|
||||
h = max(int(e.height * 0.85), 300)
|
||||
recent_top.configure(height=h)
|
||||
except Exception:
|
||||
pass
|
||||
@@ -413,7 +413,12 @@ def _create_log_panel(mid_container, theme):
|
||||
|
||||
poll_log_queue(log_text)
|
||||
|
||||
add_to_log(log_text, "欢迎使用 益选-OCR订单处理系统 v1.1.0\n", "success")
|
||||
try:
|
||||
_ver = ConfigManager().get('App', 'version', fallback='')
|
||||
_ver_str = f" v{_ver}" if _ver else ""
|
||||
except Exception:
|
||||
_ver_str = ""
|
||||
add_to_log(log_text, f"欢迎使用 益选-OCR订单处理系统{_ver_str}\n", "success")
|
||||
add_to_log(log_text, "系统已就绪,请选择相应功能进行操作。\n\n", "info")
|
||||
add_to_log(log_text, "功能说明:\n", "command")
|
||||
add_to_log(log_text, "• 完整处理流程:一键完成OCR识别和Excel处理\n", "info")
|
||||
|
||||
Reference in New Issue
Block a user