mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 08:45:41 +08:00
fix: improve error handling for application handle retrieval (#3860)
* fix: improve error handling for application handle retrieval * fix: correct argument passing for command execution and improve URL stripping logic
This commit is contained in:
@@ -530,9 +530,9 @@ impl EventDrivenProxyManager {
|
||||
use tauri_plugin_shell::ShellExt;
|
||||
|
||||
let app_handle = match Handle::global().app_handle() {
|
||||
Ok(handle) => handle,
|
||||
Err(e) => {
|
||||
log::error!(target: "app", "获取应用句柄失败: {}", e);
|
||||
Some(handle) => handle,
|
||||
None => {
|
||||
log::error!(target: "app", "获取应用句柄失败");
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user