diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2024-05-24 08:07:04 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2024-05-28 15:40:41 +0200 |
| commit | 22eda0924e9747abf598d129ddaafc6dc96ff534 (patch) | |
| tree | af84624ef6687728015c45ef26684779f351bed6 /gui/src | |
| parent | 00cfb085c52f7440c8270c839344a00e5196db8c (diff) | |
| download | mullvadvpn-22eda0924e9747abf598d129ddaafc6dc96ff534.tar.xz mullvadvpn-22eda0924e9747abf598d129ddaafc6dc96ff534.zip | |
Sort split tunneling applications on name
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/main/linux-split-tunneling.ts | 1 | ||||
| -rw-r--r-- | gui/src/renderer/components/SplitTunnelingSettings.tsx | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/gui/src/main/linux-split-tunneling.ts b/gui/src/main/linux-split-tunneling.ts index 9a93054590..3ae1a15390 100644 --- a/gui/src/main/linux-split-tunneling.ts +++ b/gui/src/main/linux-split-tunneling.ts @@ -121,7 +121,6 @@ export async function getApplications(locale: string): Promise<ILinuxSplitTunnel const applications = desktopEntries .filter(shouldShowApplication) .map(addApplicationWarnings) - .sort((a, b) => a.name.localeCompare(b.name)) .map(replaceIconNameWithDataUrl); return Promise.all(applications); diff --git a/gui/src/renderer/components/SplitTunnelingSettings.tsx b/gui/src/renderer/components/SplitTunnelingSettings.tsx index cb4de70deb..e26b9ac089 100644 --- a/gui/src/renderer/components/SplitTunnelingSettings.tsx +++ b/gui/src/renderer/components/SplitTunnelingSettings.tsx @@ -502,7 +502,9 @@ function ApplicationList<T extends IApplication>(props: IApplicationListProps<T> } else { return ( <StyledListContainer> - <List items={props.applications} getKey={applicationGetKey}> + <List + items={props.applications.sort((a, b) => a.name.localeCompare(b.name))} + getKey={applicationGetKey}> {props.rowRenderer} </List> </StyledListContainer> |
