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")