优化更新: 1. 修复版本显示和检查逻辑 2. 优化打包目录结构为两位版本号(3.4.4 -> 3.4)

This commit is contained in:
huangzhenpc
2025-02-13 20:38:49 +08:00
parent dd0a307ff4
commit 10523de040
5 changed files with 137 additions and 24 deletions

View File

@@ -1639,7 +1639,7 @@ class MainWindow(QMainWindow):
self.show_custom_message(
"检查更新",
"已是最新版本",
"您当前使用的已经是最新版本。",
f"您当前使用的 v{self.version_manager.current_version} 已经是最新版本。",
QStyle.SP_DialogApplyButton,
"#198754"
)
@@ -1693,7 +1693,8 @@ class MainWindow(QMainWindow):
version_layout.addWidget(current_version_label)
# 最新版本
new_version_label = QLabel(f"最新版本v{version_info.get('version_no', '未知')} ({version_info.get('version_name', '未知')})")
new_version = version_info.get('version_no', '未知').lstrip('v')
new_version_label = QLabel(f"最新版本v{new_version} ({version_info.get('version_name', '未知')})")
new_version_label.setStyleSheet("font-weight: bold; color: #0d6efd;")
version_layout.addWidget(new_version_label)