summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--desktop/packages/mullvad-vpn/src/renderer/components/views/split-tunneling/components/linux-settings/LinuxSettings.tsx15
1 files changed, 12 insertions, 3 deletions
diff --git a/desktop/packages/mullvad-vpn/src/renderer/components/views/split-tunneling/components/linux-settings/LinuxSettings.tsx b/desktop/packages/mullvad-vpn/src/renderer/components/views/split-tunneling/components/linux-settings/LinuxSettings.tsx
index ba9da0aaa4..1fa1115e81 100644
--- a/desktop/packages/mullvad-vpn/src/renderer/components/views/split-tunneling/components/linux-settings/LinuxSettings.tsx
+++ b/desktop/packages/mullvad-vpn/src/renderer/components/views/split-tunneling/components/linux-settings/LinuxSettings.tsx
@@ -16,8 +16,13 @@ import { LinuxSettingsContextProvider, useLinuxSettingsContext } from './LinuxSe
function LinuxSettingsInner() {
const { getLinuxSplitTunnelingSupported, getLinuxSplitTunnelingApplications } = useAppContext();
- const { searchTerm, setApplications, setSearchTerm, setSplitTunnelingSupported } =
- useLinuxSettingsContext();
+ const {
+ splitTunnelingSupported,
+ searchTerm,
+ setApplications,
+ setSearchTerm,
+ setSplitTunnelingSupported,
+ } = useLinuxSettingsContext();
const runAfterTransition = useAfterTransition();
const showLinuxApplicationList = useShowLinuxApplicationList();
const showNoSearchResult = useShowNoSearchResult();
@@ -53,7 +58,11 @@ function LinuxSettingsInner() {
)}
</HeaderSubTitle>
</SettingsHeader>
- <ApplicationSearchBar searchTerm={searchTerm} onSearch={setSearchTerm} />
+ <ApplicationSearchBar
+ disabled={!splitTunnelingSupported}
+ searchTerm={searchTerm}
+ onSearch={setSearchTerm}
+ />
{showNoSearchResult && <ApplicationSearchNoResult searchTerm={searchTerm} />}
<FlexColumn $gap="medium">
{showLinuxApplicationList && <LinuxApplicationList />}