diff options
| author | Oliver <oliver@mohlin.dev> | 2025-01-22 13:39:03 +0100 |
|---|---|---|
| committer | Markus Pettersson <markus.pettersson@mullvad.net> | 2025-01-22 13:53:55 +0100 |
| commit | d4f9ee5c71cb5ced3537fe23ba257ae2d2db60b4 (patch) | |
| tree | 7e32173e989a6ad0476b9845ddbc4c9c5fae3220 /desktop | |
| parent | 4460cffe054692f95a6b87ca29ad8fe6a4958738 (diff) | |
| download | mullvadvpn-d4f9ee5c71cb5ced3537fe23ba257ae2d2db60b4.tar.xz mullvadvpn-d4f9ee5c71cb5ced3537fe23ba257ae2d2db60b4.zip | |
Remove manual reconnect on disabling split tunneling
Diffstat (limited to 'desktop')
| -rw-r--r-- | desktop/packages/mullvad-vpn/src/renderer/components/NotificationArea.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/desktop/packages/mullvad-vpn/src/renderer/components/NotificationArea.tsx b/desktop/packages/mullvad-vpn/src/renderer/components/NotificationArea.tsx index df3c78d4b0..20b001f095 100644 --- a/desktop/packages/mullvad-vpn/src/renderer/components/NotificationArea.tsx +++ b/desktop/packages/mullvad-vpn/src/renderer/components/NotificationArea.tsx @@ -46,7 +46,7 @@ interface IProps { } export default function NotificationArea(props: IProps) { - const { showFullDiskAccessSettings, reconnectTunnel } = useAppContext(); + const { showFullDiskAccessSettings } = useAppContext(); const account = useSelector((state: IReduxState) => state.account); const locale = useSelector((state: IReduxState) => state.userInterface.locale); @@ -80,8 +80,7 @@ export default function NotificationArea(props: IProps) { const disableSplitTunneling = useCallback(async () => { setIsModalOpen(false); await setSplitTunnelingState(false); - await reconnectTunnel(); - }, [reconnectTunnel, setSplitTunnelingState]); + }, [setSplitTunnelingState]); const notificationProviders: InAppNotificationProvider[] = [ new ConnectingNotificationProvider({ tunnelState }), |
