优化更新: 1. 修复版本显示和检查逻辑 2. 优化打包目录结构为两位版本号(3.4.4 -> 3.4)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user