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

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