mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 00:35:38 +08:00
fix(sysinfo): update verge_version retrieval to use package_info instead of config
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
- 无法修改配置更新 HTTP 请求超时
|
- 无法修改配置更新 HTTP 请求超时
|
||||||
- 修复 getDelayFix 钩子问题
|
- 修复 getDelayFix 钩子问题
|
||||||
- 使用外部扩展脚本覆写代理组时首页无法显示代理组
|
- 使用外部扩展脚本覆写代理组时首页无法显示代理组
|
||||||
|
- 导出诊断 Verge 版本与设置页面不同步
|
||||||
|
|
||||||
#### 新增了:
|
#### 新增了:
|
||||||
- Mihomo(Meta)内核升级至 1.19.9
|
- Mihomo(Meta)内核升级至 1.19.9
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user