fix(sysinfo): update verge_version retrieval to use package_info instead of config

This commit is contained in:
Tunglies
2025-05-28 18:50:03 +08:00
parent 9416de6442
commit c05bd31f6b
2 changed files with 2 additions and 2 deletions

View File

@@ -27,6 +27,7 @@
- 无法修改配置更新 HTTP 请求超时 - 无法修改配置更新 HTTP 请求超时
- 修复 getDelayFix 钩子问题 - 修复 getDelayFix 钩子问题
- 使用外部扩展脚本覆写代理组时首页无法显示代理组 - 使用外部扩展脚本覆写代理组时首页无法显示代理组
- 导出诊断 Verge 版本与设置页面不同步
#### 新增了: #### 新增了:
- Mihomo(Meta)内核升级至 1.19.9 - Mihomo(Meta)内核升级至 1.19.9

View File

@@ -33,8 +33,7 @@ impl PlatformSpecification {
let system_arch = System::cpu_arch(); let system_arch = System::cpu_arch();
let handler = handle::Handle::global().app_handle().unwrap(); let handler = handle::Handle::global().app_handle().unwrap();
let config = handler.config(); let verge_version = handler.package_info().version.to_string();
let verge_version = config.version.clone().unwrap_or("Null".into());
// 使用默认值避免在同步上下文中执行异步操作 // 使用默认值避免在同步上下文中执行异步操作
let running_mode = "NotRunning".to_string(); let running_mode = "NotRunning".to_string();