fix(clipboard): propagate proxy environment copy failures

This commit is contained in:
Tunglies
2026-10-08 02:12:24 +08:00
parent 5ed291c91f
commit e3dc0b2b5b
4 changed files with 29 additions and 11 deletions
+9 -1
View File
@@ -948,7 +948,15 @@ fn on_menu_event(_: &AppHandle, event: MenuEvent) {
logging!(error, Type::Tray, "Failed to close all connections from tray: {err}");
}
}
MenuIds::COPY_ENV => feat::copy_clash_env().await,
MenuIds::COPY_ENV => {
if let Err(err) = feat::copy_clash_env().await {
logging!(
error,
Type::Tray,
"Failed to copy proxy environment variables from tray: {err:#}"
);
}
}
MenuIds::CONF_DIR => {
let _ = cmd::open_app_dir().await;
}