From ac7111b7e28912073a8ee3df4675d70ee85f1595 Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Wed, 7 Jan 2026 16:43:27 +0100 Subject: [PATCH 1/2] fix detailed view --- src-tauri/src/commands.rs | 2 +- .../components/LocationDetailCard/LocationDetailCard.tsx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/commands.rs b/src-tauri/src/commands.rs index 018a77d5..eb58eead 100644 --- a/src-tauri/src/commands.rs +++ b/src-tauri/src/commands.rs @@ -1205,7 +1205,7 @@ pub async fn delete_tunnel(tunnel_id: Id, handle: AppHandle) -> Result<(), Error with deletion." ); - if let Some(connection) = app_state + if let Some(_connection) = app_state .remove_connection(tunnel_id, ConnectionType::Tunnel) .await { diff --git a/src/pages/client/pages/ClientInstancePage/components/LocationsList/components/LocationsDetailView/components/LocationDetailCard/LocationDetailCard.tsx b/src/pages/client/pages/ClientInstancePage/components/LocationsList/components/LocationsDetailView/components/LocationDetailCard/LocationDetailCard.tsx index 45bdf5f5..ecf77268 100644 --- a/src/pages/client/pages/ClientInstancePage/components/LocationsList/components/LocationsDetailView/components/LocationDetailCard/LocationDetailCard.tsx +++ b/src/pages/client/pages/ClientInstancePage/components/LocationsList/components/LocationsDetailView/components/LocationDetailCard/LocationDetailCard.tsx @@ -92,7 +92,10 @@ export const LocationDetailCard = memo( {parse(localLL.controls.traffic.helper())} - + )} {location?.active && ( From 6ef85ec9a7783c5d61f0eb04828c7a397639252f Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Wed, 7 Jan 2026 16:58:34 +0100 Subject: [PATCH 2/2] better way of ignoring unused variable --- src-tauri/src/commands.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/commands.rs b/src-tauri/src/commands.rs index eb58eead..68b43c29 100644 --- a/src-tauri/src/commands.rs +++ b/src-tauri/src/commands.rs @@ -1204,8 +1204,8 @@ pub async fn delete_tunnel(tunnel_id: Id, handle: AppHandle) -> Result<(), Error "The tunnel to delete with ID {tunnel_id} has been identified as {tunnel}, proceeding \ with deletion." ); - - if let Some(_connection) = app_state + #[allow(unused_variables)] + if let Some(connection) = app_state .remove_connection(tunnel_id, ConnectionType::Tunnel) .await {