diff options
| author | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-09-08 12:17:39 +0200 |
|---|---|---|
| committer | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-09-18 13:06:33 +0200 |
| commit | 0e9e4ac06ff6cedab5fcdbf47d827195302248b3 (patch) | |
| tree | fe3579fd6ac74c93e85b3a90f7cb9be522a8bdb7 | |
| parent | ed36ba8045634fac65f3b0e45cd63f8f87a5bf92 (diff) | |
| download | mullvadvpn-0e9e4ac06ff6cedab5fcdbf47d827195302248b3.tar.xz mullvadvpn-0e9e4ac06ff6cedab5fcdbf47d827195302248b3.zip | |
Disable application list item when split tunneling is unsupported
1 files changed, 4 insertions, 1 deletions
diff --git a/desktop/packages/mullvad-vpn/src/renderer/components/views/split-tunneling/components/linux-settings/components/linux-application-list/components/linux-application-row/hooks/use-disabled.ts b/desktop/packages/mullvad-vpn/src/renderer/components/views/split-tunneling/components/linux-settings/components/linux-application-list/components/linux-application-row/hooks/use-disabled.ts index 052c610b3a..0086cbe977 100644 --- a/desktop/packages/mullvad-vpn/src/renderer/components/views/split-tunneling/components/linux-settings/components/linux-application-list/components/linux-application-row/hooks/use-disabled.ts +++ b/desktop/packages/mullvad-vpn/src/renderer/components/views/split-tunneling/components/linux-settings/components/linux-application-list/components/linux-application-row/hooks/use-disabled.ts @@ -1,9 +1,12 @@ +import { useLinuxSettingsContext } from '../../../../../LinuxSettingsContext'; import { useApplication } from './use-application'; export function useDisabled() { + const { splitTunnelingSupported } = useLinuxSettingsContext(); const application = useApplication(); - const disabled = application.warning === 'launches-elsewhere'; + const disabled = + splitTunnelingSupported === false || application.warning === 'launches-elsewhere'; return disabled; } |
