From 5bf51c36a00b3b7451316ab6a276bcf0be0e7002 Mon Sep 17 00:00:00 2001 From: houhuan Date: Mon, 4 May 2026 20:22:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9C=80=E8=BF=91=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=9C=80=E5=B0=8F=E9=AB=98=E5=BA=A6=E4=BF=9D?= =?UTF-8?q?=E9=9A=9C=20+=20=E6=AC=A2=E8=BF=8E=E6=96=87=E5=AD=97=E8=AF=BB?= =?UTF-8?q?=E5=8F=96=E9=85=8D=E7=BD=AE=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 列表动态高度从 75% 改为 85%,最小 300px - 欢迎信息版本号从硬编码 v1.1.0 改为读取 config.ini Co-Authored-By: Claude Opus 4.7 --- app/ui/main_window.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/ui/main_window.py b/app/ui/main_window.py index 3ed3fbd..05162ce 100644 --- a/app/ui/main_window.py +++ b/app/ui/main_window.py @@ -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")