From 2993f1db228632f4f35b5fb0f6ba97dd21ad66db Mon Sep 17 00:00:00 2001 From: Zane Schepke Date: Tue, 12 Nov 2024 22:47:03 -0500 Subject: [PATCH] fix: delete tunnel bug closes #435 --- .../wireguardautotunnel/ui/screens/main/MainScreen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/screens/main/MainScreen.kt b/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/screens/main/MainScreen.kt index 2177f5c..3c2628c 100644 --- a/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/screens/main/MainScreen.kt +++ b/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/screens/main/MainScreen.kt @@ -116,7 +116,7 @@ fun MainScreen(viewModel: MainViewModel = hiltViewModel(), uiState: AppUiState) InfoDialog( onDismiss = { showDeleteTunnelAlertDialog = false }, onAttest = { - selectedTunnel?.let { viewModel::onDelete } + selectedTunnel?.let { viewModel.onDelete(it) } showDeleteTunnelAlertDialog = false selectedTunnel = null },